{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MvdWardt\Desktop\Replication adapt or perish\manuscript figure 1 and 2.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 1 Mar 2019, 13:58:50
{txt}
{com}. 
. use "C:\Users\MvdWardt\Desktop\Replication adapt or perish\generate pss.dta", clear
{txt}(Written by R.              )

{com}. 
. set more off 
{txt}
{com}. 
. ***Replication do-file: Adapt or perish
. ***Replication of party system saturation measure (Figure 1 and 2)
. ***Author: Marc van de Wardt
. ***E-mail: M.vdWardt@uvt.nl
. ***Date: 27-2-2019
. 
. ***Variable description
. label var country  "Country name"
{txt}
{com}. label var ccode  "Country code"
{txt}
{com}. label var elec_year "Election year"
{txt}
{com}. label var elec_month "Election month"
{txt}
{com}. label var enep "Effective number of electoral parties t (Bormann and Golder 2013, Version 2.0)"
{txt}
{com}. label var LogMedian "Logged Median District Magnitude t (Carey and Hix 2011 with own additions for recent elections)"
{txt}note: label truncated to 80 characters

{com}. label var cdiv "Cultural fractionalization t (Fearon 2003)"
{txt}
{com}. label var issue_diversity "Issue diversity party system agenda t (Own calculations, based on Comparative Manifesto Project)"
{txt}note: label truncated to 80 characters

{com}. label var raw_dimens "Raw dimensionality t (Own calculations, based on procedures in Stoll (2010)"
{txt}
{com}. label var estdem "Established democracies (1 if countries first received a Polity IV freedom score of 6 or higher before 1989)"
{txt}note: label truncated to 80 characters

{com}. label var bjpols "1 if part of country selection for adapt or perish paper"
{txt}
{com}. label var disagr_weight_wvs "Fractionalization of voter preferences along left-right dimension (Own calculations, based on Eurobarometer and WVS)"
{txt}note: label truncated to 80 characters

{com}. label var pss_cg "Party system saturation t (based on residuals from Table 2, Model established democracies of Clark and Golder (2006)"
{txt}note: label truncated to 80 characters

{com}. label var iso3_abbr "Iso3 label"
{txt}
{com}. 
. ***Replicate Van de Wardt (2017) Model 2, Table 2
. reg enep c.LogMedian##c.cdiv  c.LogMedian##c.issue_diversity c.LogMedian##c.raw_dimens if estdem==1, robust cluster(ccode)
{p 0 6 2}{txt}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       387
                                                {txt}F(7, 24)          =  {res}    12.38
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3123
                                                {txt}Root MSE          =    {res}   1.28

{txt}{ralign 95:(Std. Err. adjusted for {res:25} clusters in ccode)}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                         enep{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      t{col 63}   P>|t|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}LogMedian {c |}{col 31}{res}{space 2} -.057573{col 43}{space 2} 1.411876{col 54}{space 1}   -0.04{col 63}{space 3}0.968{col 71}{space 4}-2.971541{col 84}{space 3} 2.856395
{txt}{space 25}cdiv {c |}{col 31}{res}{space 2} .2983446{col 43}{space 2} .9798899{col 54}{space 1}    0.30{col 63}{space 3}0.763{col 71}{space 4}-1.724049{col 84}{space 3} 2.320738
{txt}{space 29} {c |}
{space 11}c.LogMedian#c.cdiv {c |}{col 31}{res}{space 2} 1.694069{col 43}{space 2} .9468022{col 54}{space 1}    1.79{col 63}{space 3}0.086{col 71}{space 4}-.2600348{col 84}{space 3} 3.648173
{txt}{space 29} {c |}
{space 20}LogMedian {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 14}issue_diversity {c |}{col 31}{res}{space 2} 1.385988{col 43}{space 2} .9693231{col 54}{space 1}    1.43{col 63}{space 3}0.166{col 71}{space 4}-.6145969{col 84}{space 3} 3.386572
{txt}{space 29} {c |}
c.LogMedian#c.issue_diversity {c |}{col 31}{res}{space 2} .1344958{col 43}{space 2} .4180708{col 54}{space 1}    0.32{col 63}{space 3}0.750{col 71}{space 4}-.7283599{col 84}{space 3} .9973514
{txt}{space 29} {c |}
{space 20}LogMedian {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 19}raw_dimens {c |}{col 31}{res}{space 2} .1209354{col 43}{space 2} .5852048{col 54}{space 1}    0.21{col 63}{space 3}0.838{col 71}{space 4}-1.086868{col 84}{space 3} 1.328739
{txt}{space 29} {c |}
{space 5}c.LogMedian#c.raw_dimens {c |}{col 31}{res}{space 2}-.1001068{col 43}{space 2} .1899758{col 54}{space 1}   -0.53{col 63}{space 3}0.603{col 71}{space 4}-.4921975{col 84}{space 3} .2919839
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2}-1.421852{col 43}{space 2} 2.959191{col 54}{space 1}   -0.48{col 63}{space 3}0.635{col 71}{space 4}-7.529322{col 84}{space 3} 4.685618
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. predict yhat, xb
{txt}(819 missing values generated)

{com}. predict pss, r
{txt}(819 missing values generated)

{com}. 
. ***Replicate Van de Wardt (2017) Model 3, Table 2
. reg enep c.LogMedian##c.cdiv  c.LogMedian##c.issue_diversity c.LogMedian##c.raw_dimens c.LogMedian##c.disagr_weight_wvs if estdem==1, robust cluster(ccode)
{p 0 6 2}{txt}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       151
                                                {txt}F(9, 22)          =  {res}    12.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3772
                                                {txt}Root MSE          =    {res} 1.4062

{txt}{ralign 97:(Std. Err. adjusted for {res:23} clusters in ccode)}
{hline 32}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 33}{c |}{col 45}    Robust
{col 1}                           enep{col 33}{c |}      Coef.{col 45}   Std. Err.{col 57}      t{col 65}   P>|t|{col 73}     [95% Con{col 86}f. Interval]
{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}LogMedian {c |}{col 33}{res}{space 2}-.0460774{col 45}{space 2} 2.986025{col 56}{space 1}   -0.02{col 65}{space 3}0.988{col 73}{space 4}-6.238714{col 86}{space 3} 6.146559
{txt}{space 27}cdiv {c |}{col 33}{res}{space 2}  4.63351{col 45}{space 2} 3.797612{col 56}{space 1}    1.22{col 65}{space 3}0.235{col 73}{space 4}-3.242256{col 86}{space 3} 12.50928
{txt}{space 31} {c |}
{space 13}c.LogMedian#c.cdiv {c |}{col 33}{res}{space 2} .8000703{col 45}{space 2} 2.158471{col 56}{space 1}    0.37{col 65}{space 3}0.714{col 73}{space 4}-3.676324{col 86}{space 3} 5.276465
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 16}issue_diversity {c |}{col 33}{res}{space 2}-.1952611{col 45}{space 2} 1.959954{col 56}{space 1}   -0.10{col 65}{space 3}0.922{col 73}{space 4}-4.259956{col 86}{space 3} 3.869434
{txt}{space 31} {c |}
{space 2}c.LogMedian#c.issue_diversity {c |}{col 33}{res}{space 2} .9113219{col 45}{space 2} .9354372{col 56}{space 1}    0.97{col 65}{space 3}0.341{col 73}{space 4}-1.028656{col 86}{space 3}   2.8513
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 21}raw_dimens {c |}{col 33}{res}{space 2} .8105627{col 45}{space 2}   .61076{col 56}{space 1}    1.33{col 65}{space 3}0.198{col 73}{space 4} -.456076{col 86}{space 3} 2.077201
{txt}{space 31} {c |}
{space 7}c.LogMedian#c.raw_dimens {c |}{col 33}{res}{space 2}-.2454602{col 45}{space 2} .1584521{col 56}{space 1}   -1.55{col 65}{space 3}0.136{col 73}{space 4}-.5740698{col 86}{space 3} .0831494
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 14}disagr_weight_wvs {c |}{col 33}{res}{space 2} 7.068411{col 45}{space 2} 2.297238{col 56}{space 1}    3.08{col 65}{space 3}0.006{col 73}{space 4} 2.304232{col 86}{space 3} 11.83259
{txt}{space 31} {c |}
c.LogMedian#c.disagr_weight_wvs {c |}{col 33}{res}{space 2}-3.645284{col 45}{space 2}  .691196{col 56}{space 1}   -5.27{col 65}{space 3}0.000{col 73}{space 4}-5.078737{col 86}{space 3}-2.211831
{txt}{space 31} {c |}
{space 26}_cons {c |}{col 33}{res}{space 2}-1.806596{col 45}{space 2} 6.680062{col 56}{space 1}   -0.27{col 65}{space 3}0.789{col 73}{space 4} -15.6602{col 86}{space 3}   12.047
{txt}{hline 32}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. predict pss_mod3, r
{txt}(1,090 missing values generated)

{com}. 
. ***Replicate Figure 2
. gen lab=iso3_abbr
{txt}(370 missing values generated)

{com}. egen lab2=concat(lab elec_year)
{txt}
{com}. 
. preserve
{txt}
{com}. drop if yhat==.
{txt}(819 observations deleted)

{com}. 
. bys ccode: gen index2=_n
{txt}
{com}. bys ccode: gen tot=_N
{txt}
{com}. gen lab3=lab2 if  index2==tot
{txt}(394 missing values generated)

{com}. 
. keep if index2==tot
{txt}(394 observations deleted)

{com}. 
. scatter enep yhat if bjpols==1, legend(off) mcolor(black) msymbol(diamond)  mlab(lab3) mlabcolor(black)  xtitle("Predicted effective number of parties") ytitle("Observed effective number of parties") title("")  graphregion(fcolor(white)) || function y=x, range(2 11) lcolor(black) name(sat, replace)
{res}{txt}
{com}. capture graph export "C:\Users\MvdWardt\Desktop\Replication adapt or perish\Figure2.wmf", replace
{txt}
{com}. 
. restore
{txt}
{com}. 
. ***Replicate Figure 1
. qui eststo one: reg enep c.LogMedian##c.cdiv  c.LogMedian##c.issue_diversity c.LogMedian##c.raw_dimens if estdem==1, robust cluster(ccode)
{txt}
{com}. 
. coefplot(one, mcolor(black) msymbol(square)  label(Model 1)) , ///
> drop(_cons) xline(0, lcolor(black)) xtitle(B coefficient) mlcolor(white) ciopts(lwidth(*1) lcolor(black)) levels(90)  ///
> coeflabels(LogMedian="logM" cdiv="Societal heterogeneity" c.LogMedian#c.cdiv="logM*Societal heterogeneity" raw_dimens="Issue dimensionality" c.LogMedian#c.raw_dimens="Issue dimensionality*LogM" issue_diversity="Issue diversity" c.LogMedian#c.issue_diversity="Issue diversity*LogM") ///
> graphregion(fcolor(white)) name(two, replace)
{res}{txt}
{com}. capture graph export "C:\Users\MvdWardt\Desktop\Replication adapt or perish\Figure1.wmf", replace
{txt}
{com}. 
. gen yline=0 
{txt}
{com}. 
. reg enep c.LogMedian##c.cdiv c.LogMedian##c.issue_diversity c.LogMedian##c.raw_dimens if estdem==1, robust cluster(ccode)
{p 0 6 2}{txt}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       387
                                                {txt}F(7, 24)          =  {res}    12.38
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3123
                                                {txt}Root MSE          =    {res}   1.28

{txt}{ralign 95:(Std. Err. adjusted for {res:25} clusters in ccode)}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                         enep{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      t{col 63}   P>|t|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}LogMedian {c |}{col 31}{res}{space 2} -.057573{col 43}{space 2} 1.411876{col 54}{space 1}   -0.04{col 63}{space 3}0.968{col 71}{space 4}-2.971541{col 84}{space 3} 2.856395
{txt}{space 25}cdiv {c |}{col 31}{res}{space 2} .2983446{col 43}{space 2} .9798899{col 54}{space 1}    0.30{col 63}{space 3}0.763{col 71}{space 4}-1.724049{col 84}{space 3} 2.320738
{txt}{space 29} {c |}
{space 11}c.LogMedian#c.cdiv {c |}{col 31}{res}{space 2} 1.694069{col 43}{space 2} .9468022{col 54}{space 1}    1.79{col 63}{space 3}0.086{col 71}{space 4}-.2600348{col 84}{space 3} 3.648173
{txt}{space 29} {c |}
{space 20}LogMedian {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 14}issue_diversity {c |}{col 31}{res}{space 2} 1.385988{col 43}{space 2} .9693231{col 54}{space 1}    1.43{col 63}{space 3}0.166{col 71}{space 4}-.6145969{col 84}{space 3} 3.386572
{txt}{space 29} {c |}
c.LogMedian#c.issue_diversity {c |}{col 31}{res}{space 2} .1344958{col 43}{space 2} .4180708{col 54}{space 1}    0.32{col 63}{space 3}0.750{col 71}{space 4}-.7283599{col 84}{space 3} .9973514
{txt}{space 29} {c |}
{space 20}LogMedian {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 19}raw_dimens {c |}{col 31}{res}{space 2} .1209354{col 43}{space 2} .5852048{col 54}{space 1}    0.21{col 63}{space 3}0.838{col 71}{space 4}-1.086868{col 84}{space 3} 1.328739
{txt}{space 29} {c |}
{space 5}c.LogMedian#c.raw_dimens {c |}{col 31}{res}{space 2}-.1001068{col 43}{space 2} .1899758{col 54}{space 1}   -0.53{col 63}{space 3}0.603{col 71}{space 4}-.4921975{col 84}{space 3} .2919839
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2}-1.421852{col 43}{space 2} 2.959191{col 54}{space 1}   -0.48{col 63}{space 3}0.635{col 71}{space 4}-7.529322{col 84}{space 3} 4.685618
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(cdiv) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       387
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:cdiv}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [90% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}cdiv         {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .2983446{col 26}{space 2} .9798899{col 37}{space 1}    0.30{col 46}{space 3}0.763{col 54}{space 4}-1.378132{col 67}{space 3} 1.974821
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .4677515{col 26}{space 2} .9707238{col 37}{space 1}    0.48{col 46}{space 3}0.634{col 54}{space 4}-1.193043{col 67}{space 3} 2.128545
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .6371584{col 26}{space 2} .9707491{col 37}{space 1}    0.66{col 46}{space 3}0.518{col 54}{space 4}-1.023679{col 67}{space 3} 2.297996
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .8065653{col 26}{space 2} .9799651{col 37}{space 1}    0.82{col 46}{space 3}0.419{col 54}{space 4}-.8700395{col 67}{space 3}  2.48317
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .9759721{col 26}{space 2} .9981173{col 37}{space 1}    0.98{col 46}{space 3}0.338{col 54}{space 4}-.7316889{col 67}{space 3} 2.683633
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 1.145379{col 26}{space 2} 1.024731{col 37}{space 1}    1.12{col 46}{space 3}0.275{col 54}{space 4}-.6078147{col 67}{space 3} 2.898573
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 1.314786{col 26}{space 2} 1.059168{col 37}{space 1}    1.24{col 46}{space 3}0.226{col 54}{space 4} -.497326{col 67}{space 3} 3.126898
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 1.484193{col 26}{space 2} 1.100695{col 37}{space 1}    1.35{col 46}{space 3}0.190{col 54}{space 4}-.3989669{col 67}{space 3} 3.367352
{txt}{space 10}9  {c |}{col 14}{res}{space 2}   1.6536{col 26}{space 2} 1.148543{col 37}{space 1}    1.44{col 46}{space 3}0.163{col 54}{space 4} -.311422{col 67}{space 3} 3.618621
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 1.823007{col 26}{space 2} 1.201957{col 37}{space 1}    1.52{col 46}{space 3}0.142{col 54}{space 4}-.2334004{col 67}{space 3} 3.879414
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 1.992413{col 26}{space 2}  1.26023{col 37}{space 1}    1.58{col 46}{space 3}0.127{col 54}{space 4}-.1636915{col 67}{space 3} 4.148518
{txt}{space 9}12  {c |}{col 14}{res}{space 2}  2.16182{col 26}{space 2}  1.32272{col 37}{space 1}    1.63{col 46}{space 3}0.115{col 54}{space 4}-.1011968{col 67}{space 3} 4.424838
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 2.331227{col 26}{space 2} 1.388857{col 37}{space 1}    1.68{col 46}{space 3}0.106{col 54}{space 4}-.0449428{col 67}{space 3} 4.707397
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 2.500634{col 26}{space 2} 1.458145{col 37}{space 1}    1.71{col 46}{space 3}0.099{col 54}{space 4} .0059194{col 67}{space 3} 4.995349
{txt}{space 9}15  {c |}{col 14}{res}{space 2} 2.670041{col 26}{space 2} 1.530157{col 37}{space 1}    1.74{col 46}{space 3}0.094{col 54}{space 4} .0521224{col 67}{space 3}  5.28796
{txt}{space 9}16  {c |}{col 14}{res}{space 2} 2.839448{col 26}{space 2} 1.604526{col 37}{space 1}    1.77{col 46}{space 3}0.089{col 54}{space 4} .0942934{col 67}{space 3} 5.584602
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 3.008855{col 26}{space 2} 1.680938{col 37}{space 1}    1.79{col 46}{space 3}0.086{col 54}{space 4} .1329674{col 67}{space 3} 5.884742
{txt}{space 9}18  {c |}{col 14}{res}{space 2} 3.178262{col 26}{space 2} 1.759129{col 37}{space 1}    1.81{col 46}{space 3}0.083{col 54}{space 4} .1686001{col 67}{space 3} 6.187923
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 3.347668{col 26}{space 2}  1.83887{col 37}{space 1}    1.82{col 46}{space 3}0.081{col 54}{space 4} .2015794{col 67}{space 3} 6.493758
{txt}{space 9}20  {c |}{col 14}{res}{space 2} 3.517075{col 26}{space 2} 1.919968{col 37}{space 1}    1.83{col 46}{space 3}0.079{col 54}{space 4}  .232236{col 67}{space 3} 6.801915
{txt}{space 9}21  {c |}{col 14}{res}{space 2} 3.686482{col 26}{space 2}  2.00226{col 37}{space 1}    1.84{col 46}{space 3}0.078{col 54}{space 4} .2608521{col 67}{space 3} 7.112113
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 3.855889{col 26}{space 2} 2.085603{col 37}{space 1}    1.85{col 46}{space 3}0.077{col 54}{space 4} .2876691{col 67}{space 3} 7.424109
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 4.025296{col 26}{space 2} 2.169876{col 37}{space 1}    1.86{col 46}{space 3}0.076{col 54}{space 4} .3128945{col 67}{space 3} 7.737698
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 4.194703{col 26}{space 2} 2.254975{col 37}{space 1}    1.86{col 46}{space 3}0.075{col 54}{space 4} .3367065{col 67}{space 3} 8.052699
{txt}{space 9}25  {c |}{col 14}{res}{space 2}  4.36411{col 26}{space 2}  2.34081{col 37}{space 1}    1.86{col 46}{space 3}0.075{col 54}{space 4} .3592595{col 67}{space 3} 8.368961
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 4.533517{col 26}{space 2} 2.427303{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .3806869{col 67}{space 3} 8.686347
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 4.702923{col 26}{space 2} 2.514386{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .4011048{col 67}{space 3} 9.004742
{txt}{space 9}28  {c |}{col 14}{res}{space 2} 4.872331{col 26}{space 2}    2.602{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .4206148{col 67}{space 3} 9.324046
{txt}{space 9}29  {c |}{col 14}{res}{space 2} 5.041737{col 26}{space 2} 2.690093{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .4393054{col 67}{space 3} 9.644169
{txt}{space 9}30  {c |}{col 14}{res}{space 2} 5.211144{col 26}{space 2} 2.778619{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .4572546{col 67}{space 3} 9.965034
{txt}{space 9}31  {c |}{col 14}{res}{space 2} 5.380551{col 26}{space 2} 2.867538{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4}  .474531{col 67}{space 3} 10.28657
{txt}{space 9}32  {c |}{col 14}{res}{space 2} 5.549958{col 26}{space 2} 2.956815{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .4911954{col 67}{space 3} 10.60872
{txt}{space 9}33  {c |}{col 14}{res}{space 2} 5.719365{col 26}{space 2} 3.046419{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5073016{col 67}{space 3} 10.93143
{txt}{space 9}34  {c |}{col 14}{res}{space 2} 5.888772{col 26}{space 2}  3.13632{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5228973{col 67}{space 3} 11.25465
{txt}{space 9}35  {c |}{col 14}{res}{space 2} 6.058179{col 26}{space 2} 3.226496{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5380254{col 67}{space 3} 11.57833
{txt}{space 9}36  {c |}{col 14}{res}{space 2} 6.227586{col 26}{space 2} 3.316922{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5527238{col 67}{space 3} 11.90245
{txt}{space 9}37  {c |}{col 14}{res}{space 2} 6.396992{col 26}{space 2} 3.407579{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5670269{col 67}{space 3} 12.22696
{txt}{space 9}38  {c |}{col 14}{res}{space 2}   6.5664{col 26}{space 2} 3.498449{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5809653{col 67}{space 3} 12.55183
{txt}{space 9}39  {c |}{col 14}{res}{space 2} 6.735806{col 26}{space 2} 3.589516{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .5945668{col 67}{space 3} 12.87705
{txt}{space 9}40  {c |}{col 14}{res}{space 2} 6.905213{col 26}{space 2} 3.680766{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .6078563{col 67}{space 3} 13.20257
{txt}{space 9}41  {c |}{col 14}{res}{space 2}  7.07462{col 26}{space 2} 3.772185{col 37}{space 1}    1.88{col 46}{space 3}0.073{col 54}{space 4} .6208565{col 67}{space 3} 13.52838
{txt}{space 9}42  {c |}{col 14}{res}{space 2} 7.244027{col 26}{space 2} 3.863761{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4}  .633588{col 67}{space 3} 13.85447
{txt}{space 9}43  {c |}{col 14}{res}{space 2} 7.413434{col 26}{space 2} 3.955483{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .6460693{col 67}{space 3}  14.1808
{txt}{space 9}44  {c |}{col 14}{res}{space 2} 7.582841{col 26}{space 2} 4.047341{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .6583177{col 67}{space 3} 14.50736
{txt}{space 9}45  {c |}{col 14}{res}{space 2} 7.752248{col 26}{space 2} 4.139326{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .6703483{col 67}{space 3} 14.83415
{txt}{space 9}46  {c |}{col 14}{res}{space 2} 7.921655{col 26}{space 2} 4.231431{col 37}{space 1}    1.87{col 46}{space 3}0.073{col 54}{space 4} .6821756{col 67}{space 3} 15.16113
{txt}{space 9}47  {c |}{col 14}{res}{space 2} 8.091061{col 26}{space 2} 4.323646{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .6938125{col 67}{space 3} 15.48831
{txt}{space 9}48  {c |}{col 14}{res}{space 2} 8.260468{col 26}{space 2} 4.415966{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .7052709{col 67}{space 3} 15.81567
{txt}{space 9}49  {c |}{col 14}{res}{space 2} 8.429876{col 26}{space 2} 4.508384{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .7165619{col 67}{space 3} 16.14319
{txt}{space 9}50  {c |}{col 14}{res}{space 2} 8.599282{col 26}{space 2} 4.600894{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .7276954{col 67}{space 3} 16.47087
{txt}{space 9}51  {c |}{col 14}{res}{space 2} 8.768689{col 26}{space 2}  4.69349{col 37}{space 1}    1.87{col 46}{space 3}0.074{col 54}{space 4} .7386808{col 67}{space 3}  16.7987
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(865 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of societal heterogeneity", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(a, replace)
{res}{txt}
{com}. 
. drop xyz- g
{txt}
{com}. 
. margins, dydx(raw_dimens) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       387
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:raw_dimens}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [90% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}raw_dimens   {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .1209354{col 26}{space 2} .5852048{col 37}{space 1}    0.21{col 46}{space 3}0.838{col 54}{space 4}-.8802811{col 67}{space 3} 1.122152
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .1109247{col 26}{space 2} .5705881{col 37}{space 1}    0.19{col 46}{space 3}0.847{col 54}{space 4}-.8652843{col 67}{space 3} 1.087134
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .1009141{col 26}{space 2} .5562362{col 37}{space 1}    0.18{col 46}{space 3}0.858{col 54}{space 4}-.8507405{col 67}{space 3} 1.052569
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .0909034{col 26}{space 2} .5421702{col 37}{space 1}    0.17{col 46}{space 3}0.868{col 54}{space 4}-.8366858{col 67}{space 3} 1.018493
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .0808927{col 26}{space 2} .5284127{col 37}{space 1}    0.15{col 46}{space 3}0.880{col 54}{space 4}-.8231592{col 67}{space 3} .9849446
{txt}{space 10}6  {c |}{col 14}{res}{space 2}  .070882{col 26}{space 2} .5149887{col 37}{space 1}    0.14{col 46}{space 3}0.892{col 54}{space 4} -.810203{col 67}{space 3}  .951967
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .0608713{col 26}{space 2} .5019249{col 37}{space 1}    0.12{col 46}{space 3}0.904{col 54}{space 4}-.7978629{col 67}{space 3} .9196056
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .0508607{col 26}{space 2}   .48925{col 37}{space 1}    0.10{col 46}{space 3}0.918{col 54}{space 4}-.7861884{col 67}{space 3} .8879098
{txt}{space 10}9  {c |}{col 14}{res}{space 2}   .04085{col 26}{space 2} .4769952{col 37}{space 1}    0.09{col 46}{space 3}0.932{col 54}{space 4}-.7752325{col 67}{space 3} .8569325
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .0308393{col 26}{space 2} .4651935{col 37}{space 1}    0.07{col 46}{space 3}0.948{col 54}{space 4} -.765052{col 67}{space 3} .8267306
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .0208286{col 26}{space 2} .4538805{col 37}{space 1}    0.05{col 46}{space 3}0.964{col 54}{space 4}-.7557073{col 67}{space 3} .7973646
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .0108179{col 26}{space 2} .4430934{col 37}{space 1}    0.02{col 46}{space 3}0.981{col 54}{space 4}-.7472626{col 67}{space 3} .7688985
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .0008073{col 26}{space 2} .4328716{col 37}{space 1}    0.00{col 46}{space 3}0.999{col 54}{space 4} -.739785{col 67}{space 3} .7413995
{txt}{space 9}14  {c |}{col 14}{res}{space 2}-.0092034{col 26}{space 2} .4232561{col 37}{space 1}   -0.02{col 46}{space 3}0.983{col 54}{space 4}-.7333447{col 67}{space 3} .7149379
{txt}{space 9}15  {c |}{col 14}{res}{space 2}-.0192141{col 26}{space 2} .4142891{col 37}{space 1}   -0.05{col 46}{space 3}0.963{col 54}{space 4}-.7280138{col 67}{space 3} .6895856
{txt}{space 9}16  {c |}{col 14}{res}{space 2}-.0292248{col 26}{space 2} .4060135{col 37}{space 1}   -0.07{col 46}{space 3}0.943{col 54}{space 4} -.723866{col 67}{space 3} .6654164
{txt}{space 9}17  {c |}{col 14}{res}{space 2}-.0392355{col 26}{space 2} .3984725{col 37}{space 1}   -0.10{col 46}{space 3}0.922{col 54}{space 4}-.7209748{col 67}{space 3} .6425039
{txt}{space 9}18  {c |}{col 14}{res}{space 2}-.0492461{col 26}{space 2} .3917084{col 37}{space 1}   -0.13{col 46}{space 3}0.901{col 54}{space 4} -.719413{col 67}{space 3} .6209207
{txt}{space 9}19  {c |}{col 14}{res}{space 2}-.0592568{col 26}{space 2} .3857621{col 37}{space 1}   -0.15{col 46}{space 3}0.879{col 54}{space 4}-.7192504{col 67}{space 3} .6007367
{txt}{space 9}20  {c |}{col 14}{res}{space 2}-.0692675{col 26}{space 2} .3806721{col 37}{space 1}   -0.18{col 46}{space 3}0.857{col 54}{space 4}-.7205525{col 67}{space 3} .5820175
{txt}{space 9}21  {c |}{col 14}{res}{space 2}-.0792782{col 26}{space 2} .3764729{col 37}{space 1}   -0.21{col 46}{space 3}0.835{col 54}{space 4}-.7233789{col 67}{space 3} .5648225
{txt}{space 9}22  {c |}{col 14}{res}{space 2}-.0892888{col 26}{space 2} .3731947{col 37}{space 1}   -0.24{col 46}{space 3}0.813{col 54}{space 4}-.7277809{col 67}{space 3} .5492032
{txt}{space 9}23  {c |}{col 14}{res}{space 2}-.0992995{col 26}{space 2} .3708618{col 37}{space 1}   -0.27{col 46}{space 3}0.791{col 54}{space 4}-.7338004{col 67}{space 3} .5352013
{txt}{space 9}24  {c |}{col 14}{res}{space 2}-.1093102{col 26}{space 2} .3694923{col 37}{space 1}   -0.30{col 46}{space 3}0.770{col 54}{space 4}-.7414679{col 67}{space 3} .5228475
{txt}{space 9}25  {c |}{col 14}{res}{space 2}-.1193209{col 26}{space 2} .3690967{col 37}{space 1}   -0.32{col 46}{space 3}0.749{col 54}{space 4}-.7508019{col 67}{space 3} .5121601
{txt}{space 9}26  {c |}{col 14}{res}{space 2}-.1293316{col 26}{space 2} .3696784{col 37}{space 1}   -0.35{col 46}{space 3}0.730{col 54}{space 4}-.7618077{col 67}{space 3} .5031445
{txt}{space 9}27  {c |}{col 14}{res}{space 2}-.1393422{col 26}{space 2} .3712325{col 37}{space 1}   -0.38{col 46}{space 3}0.711{col 54}{space 4}-.7744773{col 67}{space 3} .4957928
{txt}{space 9}28  {c |}{col 14}{res}{space 2}-.1493529{col 26}{space 2} .3737471{col 37}{space 1}   -0.40{col 46}{space 3}0.693{col 54}{space 4}-.7887902{col 67}{space 3} .4900843
{txt}{space 9}29  {c |}{col 14}{res}{space 2}-.1593636{col 26}{space 2} .3772029{col 37}{space 1}   -0.42{col 46}{space 3}0.676{col 54}{space 4}-.8047133{col 67}{space 3} .4859861
{txt}{space 9}30  {c |}{col 14}{res}{space 2}-.1693743{col 26}{space 2} .3815744{col 37}{space 1}   -0.44{col 46}{space 3}0.661{col 54}{space 4} -.822203{col 67}{space 3} .4834544
{txt}{space 9}31  {c |}{col 14}{res}{space 2} -.179385{col 26}{space 2} .3868304{col 37}{space 1}   -0.46{col 46}{space 3}0.647{col 54}{space 4}-.8412062{col 67}{space 3} .4824362
{txt}{space 9}32  {c |}{col 14}{res}{space 2}-.1893956{col 26}{space 2} .3929355{col 37}{space 1}   -0.48{col 46}{space 3}0.634{col 54}{space 4} -.861662{col 67}{space 3} .4828707
{txt}{space 9}33  {c |}{col 14}{res}{space 2}-.1994063{col 26}{space 2} .3998509{col 37}{space 1}   -0.50{col 46}{space 3}0.623{col 54}{space 4} -.883504{col 67}{space 3} .4846914
{txt}{space 9}34  {c |}{col 14}{res}{space 2} -.209417{col 26}{space 2} .4075352{col 37}{space 1}   -0.51{col 46}{space 3}0.612{col 54}{space 4}-.9066617{col 67}{space 3} .4878276
{txt}{space 9}35  {c |}{col 14}{res}{space 2}-.2194277{col 26}{space 2} .4159459{col 37}{space 1}   -0.53{col 46}{space 3}0.603{col 54}{space 4} -.931062{col 67}{space 3} .4922066
{txt}{space 9}36  {c |}{col 14}{res}{space 2}-.2294384{col 26}{space 2} .4250398{col 37}{space 1}   -0.54{col 46}{space 3}0.594{col 54}{space 4}-.9566313{col 67}{space 3} .4977545
{txt}{space 9}37  {c |}{col 14}{res}{space 2} -.239449{col 26}{space 2}  .434774{col 37}{space 1}   -0.55{col 46}{space 3}0.587{col 54}{space 4}-.9832961{col 67}{space 3}  .504398
{txt}{space 9}38  {c |}{col 14}{res}{space 2}-.2494597{col 26}{space 2} .4451067{col 37}{space 1}   -0.56{col 46}{space 3}0.580{col 54}{space 4}-1.010985{col 67}{space 3} .5120653
{txt}{space 9}39  {c |}{col 14}{res}{space 2}-.2594704{col 26}{space 2}  .455997{col 37}{space 1}   -0.57{col 46}{space 3}0.575{col 54}{space 4}-1.039627{col 67}{space 3} .5206866
{txt}{space 9}40  {c |}{col 14}{res}{space 2}-.2694811{col 26}{space 2}  .467406{col 37}{space 1}   -0.58{col 46}{space 3}0.570{col 54}{space 4}-1.069158{col 67}{space 3} .5301954
{txt}{space 9}41  {c |}{col 14}{res}{space 2}-.2794918{col 26}{space 2} .4792966{col 37}{space 1}   -0.58{col 46}{space 3}0.565{col 54}{space 4}-1.099512{col 67}{space 3} .5405282
{txt}{space 9}42  {c |}{col 14}{res}{space 2}-.2895024{col 26}{space 2}  .491634{col 37}{space 1}   -0.59{col 46}{space 3}0.561{col 54}{space 4} -1.13063{col 67}{space 3} .5516253
{txt}{space 9}43  {c |}{col 14}{res}{space 2}-.2995131{col 26}{space 2} .5043853{col 37}{space 1}   -0.59{col 46}{space 3}0.558{col 54}{space 4}-1.162457{col 67}{space 3} .5634306
{txt}{space 9}44  {c |}{col 14}{res}{space 2}-.3095238{col 26}{space 2}   .51752{col 37}{space 1}   -0.60{col 46}{space 3}0.555{col 54}{space 4} -1.19494{col 67}{space 3} .5758918
{txt}{space 9}45  {c |}{col 14}{res}{space 2}-.3195345{col 26}{space 2} .5310095{col 37}{space 1}   -0.60{col 46}{space 3}0.553{col 54}{space 4}-1.228029{col 67}{space 3} .5889602
{txt}{space 9}46  {c |}{col 14}{res}{space 2}-.3295452{col 26}{space 2} .5448276{col 37}{space 1}   -0.60{col 46}{space 3}0.551{col 54}{space 4}-1.261681{col 67}{space 3} .6025906
{txt}{space 9}47  {c |}{col 14}{res}{space 2}-.3395558{col 26}{space 2} .5589498{col 37}{space 1}   -0.61{col 46}{space 3}0.549{col 54}{space 4}-1.295853{col 67}{space 3} .6167414
{txt}{space 9}48  {c |}{col 14}{res}{space 2}-.3495665{col 26}{space 2} .5733537{col 37}{space 1}   -0.61{col 46}{space 3}0.548{col 54}{space 4}-1.330507{col 67}{space 3} .6313741
{txt}{space 9}49  {c |}{col 14}{res}{space 2}-.3595772{col 26}{space 2} .5880187{col 37}{space 1}   -0.61{col 46}{space 3}0.547{col 54}{space 4}-1.365608{col 67}{space 3} .6464535
{txt}{space 9}50  {c |}{col 14}{res}{space 2}-.3695879{col 26}{space 2} .6029256{col 37}{space 1}   -0.61{col 46}{space 3}0.546{col 54}{space 4}-1.401123{col 67}{space 3} .6619467
{txt}{space 9}51  {c |}{col 14}{res}{space 2}-.3795986{col 26}{space 2} .6180569{col 37}{space 1}   -0.61{col 46}{space 3}0.545{col 54}{space 4}-1.437021{col 67}{space 3} .6778239
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(865 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of issue dimensionality", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(b, replace)
{res}{txt}
{com}. 
. drop xyz-g
{txt}
{com}. 
. margins, dydx(issue_diversity) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       387
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:issue_diversity}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}      dy/dx{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [90% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}issue_diversity {txt}{c |}
{space 12}_at {c |}
{space 13}1  {c |}{col 17}{res}{space 2} 1.385988{col 29}{space 2} .9693231{col 40}{space 1}    1.43{col 49}{space 3}0.166{col 57}{space 4}-.2724099{col 70}{space 3} 3.044385
{txt}{space 13}2  {c |}{col 17}{res}{space 2} 1.399437{col 29}{space 2} .9397796{col 40}{space 1}    1.49{col 49}{space 3}0.149{col 57}{space 4}-.2084149{col 70}{space 3} 3.007289
{txt}{space 13}3  {c |}{col 17}{res}{space 2} 1.412887{col 29}{space 2} .9111969{col 40}{space 1}    1.55{col 49}{space 3}0.134{col 57}{space 4}-.1460638{col 70}{space 3} 2.971837
{txt}{space 13}4  {c |}{col 17}{res}{space 2} 1.426336{col 29}{space 2} .8836682{col 40}{space 1}    1.61{col 49}{space 3}0.120{col 57}{space 4}-.0855159{col 70}{space 3} 2.938188
{txt}{space 13}5  {c |}{col 17}{res}{space 2} 1.439786{col 29}{space 2} .8572952{col 40}{space 1}    1.68{col 49}{space 3}0.106{col 57}{space 4}-.0269451{col 70}{space 3} 2.906517
{txt}{space 13}6  {c |}{col 17}{res}{space 2} 1.453235{col 29}{space 2} .8321876{col 40}{space 1}    1.75{col 49}{space 3}0.094{col 57}{space 4} .0294606{col 70}{space 3}  2.87701
{txt}{space 13}7  {c |}{col 17}{res}{space 2} 1.466685{col 29}{space 2} .8084633{col 40}{space 1}    1.81{col 49}{space 3}0.082{col 57}{space 4} .0834996{col 70}{space 3}  2.84987
{txt}{space 13}8  {c |}{col 17}{res}{space 2} 1.480135{col 29}{space 2} .7862477{col 40}{space 1}    1.88{col 49}{space 3}0.072{col 57}{space 4} .1349575{col 70}{space 3} 2.825312
{txt}{space 13}9  {c |}{col 17}{res}{space 2} 1.493584{col 29}{space 2} .7656719{col 40}{space 1}    1.95{col 49}{space 3}0.063{col 57}{space 4} .1836098{col 70}{space 3} 2.803559
{txt}{space 12}10  {c |}{col 17}{res}{space 2} 1.507034{col 29}{space 2} .7468717{col 40}{space 1}    2.02{col 49}{space 3}0.055{col 57}{space 4} .2292244{col 70}{space 3} 2.784843
{txt}{space 12}11  {c |}{col 17}{res}{space 2} 1.520483{col 29}{space 2} .7299841{col 40}{space 1}    2.08{col 49}{space 3}0.048{col 57}{space 4} .2715667{col 70}{space 3}   2.7694
{txt}{space 12}12  {c |}{col 17}{res}{space 2} 1.533933{col 29}{space 2} .7151446{col 40}{space 1}    2.14{col 49}{space 3}0.042{col 57}{space 4} .3104048{col 70}{space 3} 2.757461
{txt}{space 12}13  {c |}{col 17}{res}{space 2} 1.547382{col 29}{space 2} .7024832{col 40}{space 1}    2.20{col 49}{space 3}0.037{col 57}{space 4} .3455166{col 70}{space 3} 2.749248
{txt}{space 12}14  {c |}{col 17}{res}{space 2} 1.560832{col 29}{space 2} .6921192{col 40}{space 1}    2.26{col 49}{space 3}0.034{col 57}{space 4} .3766976{col 70}{space 3} 2.744966
{txt}{space 12}15  {c |}{col 17}{res}{space 2} 1.574282{col 29}{space 2} .6841572{col 40}{space 1}    2.30{col 49}{space 3}0.030{col 57}{space 4} .4037692{col 70}{space 3} 2.744794
{txt}{space 12}16  {c |}{col 17}{res}{space 2} 1.587731{col 29}{space 2} .6786817{col 40}{space 1}    2.34{col 49}{space 3}0.028{col 57}{space 4} .4265868{col 70}{space 3} 2.748876
{txt}{space 12}17  {c |}{col 17}{res}{space 2} 1.601181{col 29}{space 2} .6757531{col 40}{space 1}    2.37{col 49}{space 3}0.026{col 57}{space 4} .4450468{col 70}{space 3} 2.757315
{txt}{space 12}18  {c |}{col 17}{res}{space 2}  1.61463{col 29}{space 2} .6754046{col 40}{space 1}    2.39{col 49}{space 3}0.025{col 57}{space 4} .4590927{col 70}{space 3} 2.770168
{txt}{space 12}19  {c |}{col 17}{res}{space 2}  1.62808{col 29}{space 2} .6776401{col 40}{space 1}    2.40{col 49}{space 3}0.024{col 57}{space 4} .4687176{col 70}{space 3} 2.787442
{txt}{space 12}20  {c |}{col 17}{res}{space 2} 1.641529{col 29}{space 2} .6824343{col 40}{space 1}    2.41{col 49}{space 3}0.024{col 57}{space 4} .4739649{col 70}{space 3} 2.809094
{txt}{space 12}21  {c |}{col 17}{res}{space 2} 1.654979{col 29}{space 2} .6897337{col 40}{space 1}    2.40{col 49}{space 3}0.025{col 57}{space 4}  .474926{col 70}{space 3} 2.835032
{txt}{space 12}22  {c |}{col 17}{res}{space 2} 1.668429{col 29}{space 2}   .69946{col 40}{space 1}    2.39{col 49}{space 3}0.025{col 57}{space 4}  .471735{col 70}{space 3} 2.865122
{txt}{space 12}23  {c |}{col 17}{res}{space 2} 1.681878{col 29}{space 2} .7115137{col 40}{space 1}    2.36{col 49}{space 3}0.027{col 57}{space 4} .4645621{col 70}{space 3} 2.899194
{txt}{space 12}24  {c |}{col 17}{res}{space 2} 1.695328{col 29}{space 2} .7257788{col 40}{space 1}    2.34{col 49}{space 3}0.028{col 57}{space 4} .4536059{col 70}{space 3}  2.93705
{txt}{space 12}25  {c |}{col 17}{res}{space 2} 1.708777{col 29}{space 2} .7421277{col 40}{space 1}    2.30{col 49}{space 3}0.030{col 57}{space 4} .4390843{col 70}{space 3}  2.97847
{txt}{space 12}26  {c |}{col 17}{res}{space 2} 1.722227{col 29}{space 2} .7604262{col 40}{space 1}    2.26{col 49}{space 3}0.033{col 57}{space 4} .4212274{col 70}{space 3} 3.023226
{txt}{space 12}27  {c |}{col 17}{res}{space 2} 1.735676{col 29}{space 2}  .780537{col 40}{space 1}    2.22{col 49}{space 3}0.036{col 57}{space 4} .4002698{col 70}{space 3} 3.071083
{txt}{space 12}28  {c |}{col 17}{res}{space 2} 1.749126{col 29}{space 2}  .802324{col 40}{space 1}    2.18{col 49}{space 3}0.039{col 57}{space 4} .3764444{col 70}{space 3} 3.121808
{txt}{space 12}29  {c |}{col 17}{res}{space 2} 1.762576{col 29}{space 2} .8256543{col 40}{space 1}    2.13{col 49}{space 3}0.043{col 57}{space 4} .3499784{col 70}{space 3} 3.175173
{txt}{space 12}30  {c |}{col 17}{res}{space 2} 1.776025{col 29}{space 2} .8504012{col 40}{space 1}    2.09{col 49}{space 3}0.048{col 57}{space 4} .3210891{col 70}{space 3} 3.230961
{txt}{space 12}31  {c |}{col 17}{res}{space 2} 1.789475{col 29}{space 2} .8764444{col 40}{space 1}    2.04{col 49}{space 3}0.052{col 57}{space 4} .2899817{col 70}{space 3} 3.288968
{txt}{space 12}32  {c |}{col 17}{res}{space 2} 1.802924{col 29}{space 2} .9036721{col 40}{space 1}    2.00{col 49}{space 3}0.058{col 57}{space 4}  .256848{col 70}{space 3} 3.349001
{txt}{space 12}33  {c |}{col 17}{res}{space 2} 1.816374{col 29}{space 2} .9319803{col 40}{space 1}    1.95{col 49}{space 3}0.063{col 57}{space 4} .2218656{col 70}{space 3} 3.410882
{txt}{space 12}34  {c |}{col 17}{res}{space 2} 1.829824{col 29}{space 2} .9612736{col 40}{space 1}    1.90{col 49}{space 3}0.069{col 57}{space 4} .1851978{col 70}{space 3} 3.474449
{txt}{space 12}35  {c |}{col 17}{res}{space 2} 1.843273{col 29}{space 2} .9914648{col 40}{space 1}    1.86{col 49}{space 3}0.075{col 57}{space 4} .1469938{col 70}{space 3} 3.539552
{txt}{space 12}36  {c |}{col 17}{res}{space 2} 1.856723{col 29}{space 2} 1.022474{col 40}{space 1}    1.82{col 49}{space 3}0.082{col 57}{space 4}   .10739{col 70}{space 3} 3.606055
{txt}{space 12}37  {c |}{col 17}{res}{space 2} 1.870172{col 29}{space 2}  1.05423{col 40}{space 1}    1.77{col 49}{space 3}0.089{col 57}{space 4} .0665098{col 70}{space 3} 3.673835
{txt}{space 12}38  {c |}{col 17}{res}{space 2} 1.883622{col 29}{space 2} 1.086666{col 40}{space 1}    1.73{col 49}{space 3}0.096{col 57}{space 4} .0244649{col 70}{space 3} 3.742779
{txt}{space 12}39  {c |}{col 17}{res}{space 2} 1.897071{col 29}{space 2} 1.119723{col 40}{space 1}    1.69{col 49}{space 3}0.103{col 57}{space 4}-.0186432{col 70}{space 3} 3.812786
{txt}{space 12}40  {c |}{col 17}{res}{space 2} 1.910521{col 29}{space 2} 1.153349{col 40}{space 1}    1.66{col 49}{space 3}0.111{col 57}{space 4}-.0627233{col 70}{space 3} 3.883765
{txt}{space 12}41  {c |}{col 17}{res}{space 2} 1.923971{col 29}{space 2} 1.187495{col 40}{space 1}    1.62{col 49}{space 3}0.118{col 57}{space 4}-.1076927{col 70}{space 3} 3.955634
{txt}{space 12}42  {c |}{col 17}{res}{space 2}  1.93742{col 29}{space 2} 1.222116{col 40}{space 1}    1.59{col 49}{space 3}0.126{col 57}{space 4}-.1534768{col 70}{space 3} 4.028317
{txt}{space 12}43  {c |}{col 17}{res}{space 2}  1.95087{col 29}{space 2} 1.257175{col 40}{space 1}    1.55{col 49}{space 3}0.134{col 57}{space 4}-.2000085{col 70}{space 3} 4.101748
{txt}{space 12}44  {c |}{col 17}{res}{space 2} 1.964319{col 29}{space 2} 1.292635{col 40}{space 1}    1.52{col 49}{space 3}0.142{col 57}{space 4} -.247227{col 70}{space 3} 4.175866
{txt}{space 12}45  {c |}{col 17}{res}{space 2} 1.977769{col 29}{space 2} 1.328464{col 40}{space 1}    1.49{col 49}{space 3}0.150{col 57}{space 4} -.295077{col 70}{space 3} 4.250615
{txt}{space 12}46  {c |}{col 17}{res}{space 2} 1.991218{col 29}{space 2} 1.364634{col 40}{space 1}    1.46{col 49}{space 3}0.157{col 57}{space 4}-.3435089{col 70}{space 3} 4.325946
{txt}{space 12}47  {c |}{col 17}{res}{space 2} 2.004668{col 29}{space 2} 1.401117{col 40}{space 1}    1.43{col 49}{space 3}0.165{col 57}{space 4}-.3924777{col 70}{space 3} 4.401814
{txt}{space 12}48  {c |}{col 17}{res}{space 2} 2.018118{col 29}{space 2}  1.43789{col 40}{space 1}    1.40{col 49}{space 3}0.173{col 57}{space 4}-.4419424{col 70}{space 3} 4.478178
{txt}{space 12}49  {c |}{col 17}{res}{space 2} 2.031567{col 29}{space 2} 1.474931{col 40}{space 1}    1.38{col 49}{space 3}0.181{col 57}{space 4}-.4918663{col 70}{space 3} 4.555001
{txt}{space 12}50  {c |}{col 17}{res}{space 2} 2.045017{col 29}{space 2} 1.512221{col 40}{space 1}    1.35{col 49}{space 3}0.189{col 57}{space 4}-.5422151{col 70}{space 3} 4.632249
{txt}{space 12}51  {c |}{col 17}{res}{space 2} 2.058466{col 29}{space 2} 1.549741{col 40}{space 1}    1.33{col 49}{space 3}0.197{col 57}{space 4}-.5929585{col 70}{space 3} 4.709891
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(865 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of issue diversity", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(c, replace)
{res}{txt}
{com}. 
. drop xyz- g
{txt}
{com}. 
. graph combine two a b c, graphregion(fcolor(white))  altshrink
{res}{txt}
{com}. capture graph export "C:\Users\MvdWardt\Desktop\Replication adapt or perish\Figure1.wmf", replace
{txt}
{com}. 
. **Replicate Figure A3
. 
. graph combine a b c, graphregion(fcolor(white))  altshrink
{res}{txt}
{com}. capture graph export "C:\Users\MvdWardt\Desktop\Replication adapt or perish\FigureA3.wmf", replace
{txt}
{com}. 
. **Replicate Figure A4
. 
. reg enep c.LogMedian##c.cdiv  c.LogMedian##c.issue_diversity c.LogMedian##c.raw_dimens c.LogMedian##c.disagr_weight_wvs if estdem==1, robust cluster(ccode)
{p 0 6 2}{txt}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}
{p 0 6 2}note: LogMedian omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       151
                                                {txt}F(9, 22)          =  {res}    12.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3772
                                                {txt}Root MSE          =    {res} 1.4062

{txt}{ralign 97:(Std. Err. adjusted for {res:23} clusters in ccode)}
{hline 32}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 33}{c |}{col 45}    Robust
{col 1}                           enep{col 33}{c |}      Coef.{col 45}   Std. Err.{col 57}      t{col 65}   P>|t|{col 73}     [95% Con{col 86}f. Interval]
{hline 32}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}LogMedian {c |}{col 33}{res}{space 2}-.0460774{col 45}{space 2} 2.986025{col 56}{space 1}   -0.02{col 65}{space 3}0.988{col 73}{space 4}-6.238714{col 86}{space 3} 6.146559
{txt}{space 27}cdiv {c |}{col 33}{res}{space 2}  4.63351{col 45}{space 2} 3.797612{col 56}{space 1}    1.22{col 65}{space 3}0.235{col 73}{space 4}-3.242256{col 86}{space 3} 12.50928
{txt}{space 31} {c |}
{space 13}c.LogMedian#c.cdiv {c |}{col 33}{res}{space 2} .8000703{col 45}{space 2} 2.158471{col 56}{space 1}    0.37{col 65}{space 3}0.714{col 73}{space 4}-3.676324{col 86}{space 3} 5.276465
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 16}issue_diversity {c |}{col 33}{res}{space 2}-.1952611{col 45}{space 2} 1.959954{col 56}{space 1}   -0.10{col 65}{space 3}0.922{col 73}{space 4}-4.259956{col 86}{space 3} 3.869434
{txt}{space 31} {c |}
{space 2}c.LogMedian#c.issue_diversity {c |}{col 33}{res}{space 2} .9113219{col 45}{space 2} .9354372{col 56}{space 1}    0.97{col 65}{space 3}0.341{col 73}{space 4}-1.028656{col 86}{space 3}   2.8513
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 21}raw_dimens {c |}{col 33}{res}{space 2} .8105627{col 45}{space 2}   .61076{col 56}{space 1}    1.33{col 65}{space 3}0.198{col 73}{space 4} -.456076{col 86}{space 3} 2.077201
{txt}{space 31} {c |}
{space 7}c.LogMedian#c.raw_dimens {c |}{col 33}{res}{space 2}-.2454602{col 45}{space 2} .1584521{col 56}{space 1}   -1.55{col 65}{space 3}0.136{col 73}{space 4}-.5740698{col 86}{space 3} .0831494
{txt}{space 31} {c |}
{space 22}LogMedian {c |}{col 33}{res}{space 2}        0{col 45}{txt}  (omitted)
{space 14}disagr_weight_wvs {c |}{col 33}{res}{space 2} 7.068411{col 45}{space 2} 2.297238{col 56}{space 1}    3.08{col 65}{space 3}0.006{col 73}{space 4} 2.304232{col 86}{space 3} 11.83259
{txt}{space 31} {c |}
c.LogMedian#c.disagr_weight_wvs {c |}{col 33}{res}{space 2}-3.645284{col 45}{space 2}  .691196{col 56}{space 1}   -5.27{col 65}{space 3}0.000{col 73}{space 4}-5.078737{col 86}{space 3}-2.211831
{txt}{space 31} {c |}
{space 26}_cons {c |}{col 33}{res}{space 2}-1.806596{col 45}{space 2} 6.680062{col 56}{space 1}   -0.27{col 65}{space 3}0.789{col 73}{space 4} -15.6602{col 86}{space 3}   12.047
{txt}{hline 32}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(cdiv) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       151
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:cdiv}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [90% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}cdiv         {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}  4.63351{col 26}{space 2} 3.797612{col 37}{space 1}    1.22{col 46}{space 3}0.235{col 54}{space 4}-1.887539{col 67}{space 3} 11.15456
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.713517{col 26}{space 2}  3.65188{col 37}{space 1}    1.29{col 46}{space 3}0.210{col 54}{space 4}-1.557289{col 67}{space 3} 10.98432
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.793524{col 26}{space 2} 3.513372{col 37}{space 1}    1.36{col 46}{space 3}0.186{col 54}{space 4}-1.239443{col 67}{space 3} 10.82649
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 4.873531{col 26}{space 2} 3.382974{col 37}{space 1}    1.44{col 46}{space 3}0.164{col 54}{space 4}-.9355243{col 67}{space 3} 10.68259
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.953538{col 26}{space 2}  3.26166{col 37}{space 1}    1.52{col 46}{space 3}0.143{col 54}{space 4}-.6472034{col 67}{space 3} 10.55428
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 5.033545{col 26}{space 2} 3.150479{col 37}{space 1}    1.60{col 46}{space 3}0.124{col 54}{space 4}-.3762826{col 67}{space 3} 10.44337
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 5.113552{col 26}{space 2} 3.050539{col 37}{space 1}    1.68{col 46}{space 3}0.108{col 54}{space 4}-.1246645{col 67}{space 3} 10.35177
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 5.193559{col 26}{space 2} 2.962979{col 37}{space 1}    1.75{col 46}{space 3}0.094{col 54}{space 4}  .105697{col 67}{space 3} 10.28142
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 5.273566{col 26}{space 2} 2.888923{col 37}{space 1}    1.83{col 46}{space 3}0.082{col 54}{space 4} .3128689{col 67}{space 3} 10.23426
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 5.353573{col 26}{space 2} 2.829432{col 37}{space 1}    1.89{col 46}{space 3}0.072{col 54}{space 4} .4950298{col 67}{space 3} 10.21212
{txt}{space 9}11  {c |}{col 14}{res}{space 2}  5.43358{col 26}{space 2}  2.78544{col 37}{space 1}    1.95{col 46}{space 3}0.064{col 54}{space 4} .6505773{col 67}{space 3} 10.21658
{txt}{space 9}12  {c |}{col 14}{res}{space 2} 5.513587{col 26}{space 2} 2.757689{col 37}{space 1}    2.00{col 46}{space 3}0.058{col 54}{space 4} .7782372{col 67}{space 3} 10.24894
{txt}{space 9}13  {c |}{col 14}{res}{space 2} 5.593594{col 26}{space 2} 2.746671{col 37}{space 1}    2.04{col 46}{space 3}0.054{col 54}{space 4} .8771643{col 67}{space 3} 10.31002
{txt}{space 9}14  {c |}{col 14}{res}{space 2} 5.673601{col 26}{space 2} 2.752586{col 37}{space 1}    2.06{col 46}{space 3}0.051{col 54}{space 4} .9470133{col 67}{space 3} 10.40019
{txt}{space 9}15  {c |}{col 14}{res}{space 2} 5.753608{col 26}{space 2} 2.775327{col 37}{space 1}    2.07{col 46}{space 3}0.050{col 54}{space 4} .9879706{col 67}{space 3} 10.51925
{txt}{space 9}16  {c |}{col 14}{res}{space 2} 5.833615{col 26}{space 2} 2.814486{col 37}{space 1}    2.07{col 46}{space 3}0.050{col 54}{space 4} 1.000736{col 67}{space 3} 10.66649
{txt}{space 9}17  {c |}{col 14}{res}{space 2} 5.913622{col 26}{space 2} 2.869391{col 37}{space 1}    2.06{col 46}{space 3}0.051{col 54}{space 4}  .986464{col 67}{space 3} 10.84078
{txt}{space 9}18  {c |}{col 14}{res}{space 2} 5.993629{col 26}{space 2} 2.939159{col 37}{space 1}    2.04{col 46}{space 3}0.054{col 54}{space 4} .9466693{col 67}{space 3} 11.04059
{txt}{space 9}19  {c |}{col 14}{res}{space 2} 6.073636{col 26}{space 2} 3.022761{col 37}{space 1}    2.01{col 46}{space 3}0.057{col 54}{space 4}  .883119{col 67}{space 3} 11.26415
{txt}{space 9}20  {c |}{col 14}{res}{space 2} 6.153643{col 26}{space 2} 3.119086{col 37}{space 1}    1.97{col 46}{space 3}0.061{col 54}{space 4} .7977228{col 67}{space 3} 11.50956
{txt}{space 9}21  {c |}{col 14}{res}{space 2}  6.23365{col 26}{space 2} 3.226993{col 37}{space 1}    1.93{col 46}{space 3}0.066{col 54}{space 4} .6924368{col 67}{space 3} 11.77486
{txt}{space 9}22  {c |}{col 14}{res}{space 2} 6.313657{col 26}{space 2} 3.345363{col 37}{space 1}    1.89{col 46}{space 3}0.072{col 54}{space 4} .5691854{col 67}{space 3} 12.05813
{txt}{space 9}23  {c |}{col 14}{res}{space 2} 6.393664{col 26}{space 2} 3.473127{col 37}{space 1}    1.84{col 46}{space 3}0.079{col 54}{space 4} .4298048{col 67}{space 3} 12.35752
{txt}{space 9}24  {c |}{col 14}{res}{space 2} 6.473671{col 26}{space 2} 3.609285{col 37}{space 1}    1.79{col 46}{space 3}0.087{col 54}{space 4} .2760082{col 67}{space 3} 12.67133
{txt}{space 9}25  {c |}{col 14}{res}{space 2} 6.553679{col 26}{space 2} 3.752925{col 37}{space 1}    1.75{col 46}{space 3}0.095{col 54}{space 4} .1093638{col 67}{space 3} 12.99799
{txt}{space 9}26  {c |}{col 14}{res}{space 2} 6.633685{col 26}{space 2} 3.903222{col 37}{space 1}    1.70{col 46}{space 3}0.103{col 54}{space 4}-.0687094{col 67}{space 3} 13.33608
{txt}{space 9}27  {c |}{col 14}{res}{space 2} 6.713692{col 26}{space 2} 4.059434{col 37}{space 1}    1.65{col 46}{space 3}0.112{col 54}{space 4}-.2569424{col 67}{space 3} 13.68433
{txt}{space 9}28  {c |}{col 14}{res}{space 2}   6.7937{col 26}{space 2} 4.220907{col 37}{space 1}    1.61{col 46}{space 3}0.122{col 54}{space 4}-.4542078{col 67}{space 3} 14.04161
{txt}{space 9}29  {c |}{col 14}{res}{space 2} 6.873707{col 26}{space 2} 4.387059{col 37}{space 1}    1.57{col 46}{space 3}0.131{col 54}{space 4}-.6595074{col 67}{space 3} 14.40692
{txt}{space 9}30  {c |}{col 14}{res}{space 2} 6.953714{col 26}{space 2} 4.557379{col 37}{space 1}    1.53{col 46}{space 3}0.141{col 54}{space 4}-.8719634{col 67}{space 3} 14.77939
{txt}{space 9}31  {c |}{col 14}{res}{space 2} 7.033721{col 26}{space 2} 4.731415{col 37}{space 1}    1.49{col 46}{space 3}0.151{col 54}{space 4}-1.090802{col 67}{space 3} 15.15824
{txt}{space 9}32  {c |}{col 14}{res}{space 2} 7.113728{col 26}{space 2} 4.908773{col 37}{space 1}    1.45{col 46}{space 3}0.161{col 54}{space 4}-1.315345{col 67}{space 3}  15.5428
{txt}{space 9}33  {c |}{col 14}{res}{space 2} 7.193735{col 26}{space 2} 5.089107{col 37}{space 1}    1.41{col 46}{space 3}0.171{col 54}{space 4}-1.544996{col 67}{space 3} 15.93247
{txt}{space 9}34  {c |}{col 14}{res}{space 2} 7.273742{col 26}{space 2} 5.272109{col 37}{space 1}    1.38{col 46}{space 3}0.182{col 54}{space 4}-1.779231{col 67}{space 3} 16.32671
{txt}{space 9}35  {c |}{col 14}{res}{space 2} 7.353749{col 26}{space 2} 5.457513{col 37}{space 1}    1.35{col 46}{space 3}0.192{col 54}{space 4}-2.017589{col 67}{space 3} 16.72509
{txt}{space 9}36  {c |}{col 14}{res}{space 2} 7.433756{col 26}{space 2} 5.645081{col 37}{space 1}    1.32{col 46}{space 3}0.201{col 54}{space 4}-2.259663{col 67}{space 3} 17.12717
{txt}{space 9}37  {c |}{col 14}{res}{space 2} 7.513763{col 26}{space 2} 5.834604{col 37}{space 1}    1.29{col 46}{space 3}0.211{col 54}{space 4}-2.505095{col 67}{space 3} 17.53262
{txt}{space 9}38  {c |}{col 14}{res}{space 2}  7.59377{col 26}{space 2} 6.025899{col 37}{space 1}    1.26{col 46}{space 3}0.221{col 54}{space 4}-2.753568{col 67}{space 3} 17.94111
{txt}{space 9}39  {c |}{col 14}{res}{space 2} 7.673777{col 26}{space 2} 6.218801{col 37}{space 1}    1.23{col 46}{space 3}0.230{col 54}{space 4}-3.004802{col 67}{space 3} 18.35236
{txt}{space 9}40  {c |}{col 14}{res}{space 2} 7.753784{col 26}{space 2} 6.413166{col 37}{space 1}    1.21{col 46}{space 3}0.239{col 54}{space 4}-3.258548{col 67}{space 3} 18.76612
{txt}{space 9}41  {c |}{col 14}{res}{space 2} 7.833791{col 26}{space 2} 6.608864{col 37}{space 1}    1.19{col 46}{space 3}0.249{col 54}{space 4}-3.514583{col 67}{space 3} 19.18216
{txt}{space 9}42  {c |}{col 14}{res}{space 2} 7.913798{col 26}{space 2} 6.805781{col 37}{space 1}    1.16{col 46}{space 3}0.257{col 54}{space 4} -3.77271{col 67}{space 3} 19.60031
{txt}{space 9}43  {c |}{col 14}{res}{space 2} 7.993805{col 26}{space 2} 7.003813{col 37}{space 1}    1.14{col 46}{space 3}0.266{col 54}{space 4}-4.032753{col 67}{space 3} 20.02036
{txt}{space 9}44  {c |}{col 14}{res}{space 2} 8.073812{col 26}{space 2}  7.20287{col 37}{space 1}    1.12{col 46}{space 3}0.274{col 54}{space 4}-4.294555{col 67}{space 3} 20.44218
{txt}{space 9}45  {c |}{col 14}{res}{space 2} 8.153819{col 26}{space 2} 7.402867{col 37}{space 1}    1.10{col 46}{space 3}0.283{col 54}{space 4}-4.557972{col 67}{space 3} 20.86561
{txt}{space 9}46  {c |}{col 14}{res}{space 2} 8.233826{col 26}{space 2} 7.603731{col 37}{space 1}    1.08{col 46}{space 3}0.291{col 54}{space 4}-4.822878{col 67}{space 3} 21.29053
{txt}{space 9}47  {c |}{col 14}{res}{space 2} 8.313833{col 26}{space 2} 7.805395{col 37}{space 1}    1.07{col 46}{space 3}0.298{col 54}{space 4}-5.089157{col 67}{space 3} 21.71682
{txt}{space 9}48  {c |}{col 14}{res}{space 2}  8.39384{col 26}{space 2} 8.007798{col 37}{space 1}    1.05{col 46}{space 3}0.306{col 54}{space 4}-5.356706{col 67}{space 3} 22.14439
{txt}{space 9}49  {c |}{col 14}{res}{space 2} 8.473847{col 26}{space 2} 8.210888{col 37}{space 1}    1.03{col 46}{space 3}0.313{col 54}{space 4}-5.625432{col 67}{space 3} 22.57313
{txt}{space 9}50  {c |}{col 14}{res}{space 2} 8.553854{col 26}{space 2} 8.414611{col 37}{space 1}    1.02{col 46}{space 3}0.320{col 54}{space 4}-5.895248{col 67}{space 3} 23.00296
{txt}{space 9}51  {c |}{col 14}{res}{space 2} 8.633861{col 26}{space 2} 8.618925{col 37}{space 1}    1.00{col 46}{space 3}0.327{col 54}{space 4}-6.166077{col 67}{space 3}  23.4338
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(1,101 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of societal heterogeneity", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(a, replace)
{res}{txt}
{com}. 
. drop xyz- g
{txt}
{com}. 
. margins, dydx(raw_dimens) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       151
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:raw_dimens}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [90% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}raw_dimens   {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .8105627{col 26}{space 2}   .61076{col 37}{space 1}    1.33{col 46}{space 3}0.198{col 54}{space 4}-.2382004{col 67}{space 3} 1.859326
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .7860167{col 26}{space 2} .6016036{col 37}{space 1}    1.31{col 46}{space 3}0.205{col 54}{space 4}-.2470235{col 67}{space 3} 1.819057
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .7614706{col 26}{space 2} .5927294{col 37}{space 1}    1.28{col 46}{space 3}0.212{col 54}{space 4}-.2563313{col 67}{space 3} 1.779273
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .7369246{col 26}{space 2} .5841502{col 37}{space 1}    1.26{col 46}{space 3}0.220{col 54}{space 4}-.2661457{col 67}{space 3} 1.739995
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .7123786{col 26}{space 2} .5758793{col 37}{space 1}    1.24{col 46}{space 3}0.229{col 54}{space 4}-.2764894{col 67}{space 3} 1.701247
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .6878326{col 26}{space 2} .5679302{col 37}{space 1}    1.21{col 46}{space 3}0.239{col 54}{space 4}-.2873855{col 67}{space 3} 1.663051
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .6632865{col 26}{space 2} .5603164{col 37}{space 1}    1.18{col 46}{space 3}0.249{col 54}{space 4}-.2988577{col 67}{space 3} 1.625431
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .6387405{col 26}{space 2} .5530519{col 37}{space 1}    1.15{col 46}{space 3}0.261{col 54}{space 4}-.3109295{col 67}{space 3} 1.588411
{txt}{space 10}9  {c |}{col 14}{res}{space 2} .6141945{col 26}{space 2} .5461507{col 37}{space 1}    1.12{col 46}{space 3}0.273{col 54}{space 4} -.323625{col 67}{space 3} 1.552014
{txt}{space 9}10  {c |}{col 14}{res}{space 2} .5896485{col 26}{space 2} .5396265{col 37}{space 1}    1.09{col 46}{space 3}0.286{col 54}{space 4}-.3369682{col 67}{space 3} 1.516265
{txt}{space 9}11  {c |}{col 14}{res}{space 2} .5651025{col 26}{space 2} .5334934{col 37}{space 1}    1.06{col 46}{space 3}0.301{col 54}{space 4}-.3509826{col 67}{space 3} 1.481188
{txt}{space 9}12  {c |}{col 14}{res}{space 2} .5405564{col 26}{space 2} .5277648{col 37}{space 1}    1.02{col 46}{space 3}0.317{col 54}{space 4}-.3656919{col 67}{space 3} 1.446805
{txt}{space 9}13  {c |}{col 14}{res}{space 2} .5160104{col 26}{space 2} .5224541{col 37}{space 1}    0.99{col 46}{space 3}0.334{col 54}{space 4}-.3811188{col 67}{space 3}  1.41314
{txt}{space 9}14  {c |}{col 14}{res}{space 2} .4914644{col 26}{space 2} .5175743{col 37}{space 1}    0.95{col 46}{space 3}0.353{col 54}{space 4}-.3972854{col 67}{space 3} 1.380214
{txt}{space 9}15  {c |}{col 14}{res}{space 2} .4669184{col 26}{space 2} .5131375{col 37}{space 1}    0.91{col 46}{space 3}0.373{col 54}{space 4}-.4142128{col 67}{space 3}  1.34805
{txt}{space 9}16  {c |}{col 14}{res}{space 2} .4423723{col 26}{space 2} .5091553{col 37}{space 1}    0.87{col 46}{space 3}0.394{col 54}{space 4}-.4319209{col 67}{space 3} 1.316666
{txt}{space 9}17  {c |}{col 14}{res}{space 2} .4178263{col 26}{space 2} .5056386{col 37}{space 1}    0.83{col 46}{space 3}0.417{col 54}{space 4}-.4504281{col 67}{space 3} 1.286081
{txt}{space 9}18  {c |}{col 14}{res}{space 2} .3932803{col 26}{space 2}  .502597{col 37}{space 1}    0.78{col 46}{space 3}0.442{col 54}{space 4}-.4697513{col 67}{space 3} 1.256312
{txt}{space 9}19  {c |}{col 14}{res}{space 2} .3687343{col 26}{space 2} .5000393{col 37}{space 1}    0.74{col 46}{space 3}0.469{col 54}{space 4}-.4899053{col 67}{space 3} 1.227374
{txt}{space 9}20  {c |}{col 14}{res}{space 2} .3441883{col 26}{space 2} .4979728{col 37}{space 1}    0.69{col 46}{space 3}0.497{col 54}{space 4}-.5109029{col 67}{space 3} 1.199279
{txt}{space 9}21  {c |}{col 14}{res}{space 2} .3196422{col 26}{space 2} .4964038{col 37}{space 1}    0.64{col 46}{space 3}0.526{col 54}{space 4}-.5327547{col 67}{space 3} 1.172039
{txt}{space 9}22  {c |}{col 14}{res}{space 2} .2950962{col 26}{space 2} .4953369{col 37}{space 1}    0.60{col 46}{space 3}0.557{col 54}{space 4}-.5554687{col 67}{space 3} 1.145661
{txt}{space 9}23  {c |}{col 14}{res}{space 2} .2705502{col 26}{space 2} .4947754{col 37}{space 1}    0.55{col 46}{space 3}0.590{col 54}{space 4}-.5790506{col 67}{space 3} 1.120151
{txt}{space 9}24  {c |}{col 14}{res}{space 2} .2460042{col 26}{space 2} .4947211{col 37}{space 1}    0.50{col 46}{space 3}0.624{col 54}{space 4}-.6035033{col 67}{space 3} 1.095512
{txt}{space 9}25  {c |}{col 14}{res}{space 2} .2214581{col 26}{space 2}  .495174{col 37}{space 1}    0.45{col 46}{space 3}0.659{col 54}{space 4}-.6288271{col 67}{space 3} 1.071743
{txt}{space 9}26  {c |}{col 14}{res}{space 2} .1969121{col 26}{space 2} .4961328{col 37}{space 1}    0.40{col 46}{space 3}0.695{col 54}{space 4}-.6550196{col 67}{space 3} 1.048844
{txt}{space 9}27  {c |}{col 14}{res}{space 2} .1723661{col 26}{space 2} .4975946{col 37}{space 1}    0.35{col 46}{space 3}0.732{col 54}{space 4}-.6820757{col 67}{space 3} 1.026808
{txt}{space 9}28  {c |}{col 14}{res}{space 2} .1478201{col 26}{space 2}  .499555{col 37}{space 1}    0.30{col 46}{space 3}0.770{col 54}{space 4} -.709988{col 67}{space 3} 1.005628
{txt}{space 9}29  {c |}{col 14}{res}{space 2} .1232741{col 26}{space 2} .5020081{col 37}{space 1}    0.25{col 46}{space 3}0.808{col 54}{space 4}-.7387463{col 67}{space 3} .9852944
{txt}{space 9}30  {c |}{col 14}{res}{space 2}  .098728{col 26}{space 2} .5049467{col 37}{space 1}    0.20{col 46}{space 3}0.847{col 54}{space 4}-.7683384{col 67}{space 3} .9657944
{txt}{space 9}31  {c |}{col 14}{res}{space 2}  .074182{col 26}{space 2} .5083625{col 37}{space 1}    0.15{col 46}{space 3}0.885{col 54}{space 4}-.7987497{col 67}{space 3} .9471138
{txt}{space 9}32  {c |}{col 14}{res}{space 2}  .049636{col 26}{space 2} .5122458{col 37}{space 1}    0.10{col 46}{space 3}0.924{col 54}{space 4}-.8299639{col 67}{space 3}  .929236
{txt}{space 9}33  {c |}{col 14}{res}{space 2}   .02509{col 26}{space 2} .5165861{col 37}{space 1}    0.05{col 46}{space 3}0.962{col 54}{space 4} -.861963{col 67}{space 3} .9121429
{txt}{space 9}34  {c |}{col 14}{res}{space 2}  .000544{col 26}{space 2} .5213721{col 37}{space 1}    0.00{col 46}{space 3}0.999{col 54}{space 4}-.8947272{col 67}{space 3} .8958151
{txt}{space 9}35  {c |}{col 14}{res}{space 2}-.0240021{col 26}{space 2} .5265915{col 37}{space 1}   -0.05{col 46}{space 3}0.964{col 54}{space 4}-.9282358{col 67}{space 3} .8802316
{txt}{space 9}36  {c |}{col 14}{res}{space 2}-.0485481{col 26}{space 2} .5322317{col 37}{space 1}   -0.09{col 46}{space 3}0.928{col 54}{space 4}-.9624667{col 67}{space 3} .8653705
{txt}{space 9}37  {c |}{col 14}{res}{space 2}-.0730941{col 26}{space 2} .5382793{col 37}{space 1}   -0.14{col 46}{space 3}0.893{col 54}{space 4}-.9973973{col 67}{space 3} .8512092
{txt}{space 9}38  {c |}{col 14}{res}{space 2}-.0976401{col 26}{space 2} .5447208{col 37}{space 1}   -0.18{col 46}{space 3}0.859{col 54}{space 4}-1.033004{col 67}{space 3} .8377242
{txt}{space 9}39  {c |}{col 14}{res}{space 2}-.1221861{col 26}{space 2} .5515425{col 37}{space 1}   -0.22{col 46}{space 3}0.827{col 54}{space 4}-1.069264{col 67}{space 3}  .824892
{txt}{space 9}40  {c |}{col 14}{res}{space 2}-.1467322{col 26}{space 2} .5587304{col 37}{space 1}   -0.26{col 46}{space 3}0.795{col 54}{space 4}-1.106153{col 67}{space 3} .8126885
{txt}{space 9}41  {c |}{col 14}{res}{space 2}-.1712782{col 26}{space 2} .5662705{col 37}{space 1}   -0.30{col 46}{space 3}0.765{col 54}{space 4}-1.143646{col 67}{space 3} .8010899
{txt}{space 9}42  {c |}{col 14}{res}{space 2}-.1958242{col 26}{space 2} .5741489{col 37}{space 1}   -0.34{col 46}{space 3}0.736{col 54}{space 4}-1.181721{col 67}{space 3} .7900724
{txt}{space 9}43  {c |}{col 14}{res}{space 2}-.2203702{col 26}{space 2}  .582352{col 37}{space 1}   -0.38{col 46}{space 3}0.709{col 54}{space 4}-1.220353{col 67}{space 3} .7796123
{txt}{space 9}44  {c |}{col 14}{res}{space 2}-.2449163{col 26}{space 2} .5908663{col 37}{space 1}   -0.41{col 46}{space 3}0.683{col 54}{space 4}-1.259519{col 67}{space 3} .7696864
{txt}{space 9}45  {c |}{col 14}{res}{space 2}-.2694623{col 26}{space 2} .5996784{col 37}{space 1}   -0.45{col 46}{space 3}0.658{col 54}{space 4}-1.299197{col 67}{space 3}  .760272
{txt}{space 9}46  {c |}{col 14}{res}{space 2}-.2940083{col 26}{space 2} .6087754{col 37}{space 1}   -0.48{col 46}{space 3}0.634{col 54}{space 4}-1.339364{col 67}{space 3} .7513469
{txt}{space 9}47  {c |}{col 14}{res}{space 2}-.3185543{col 26}{space 2} .6181447{col 37}{space 1}   -0.52{col 46}{space 3}0.611{col 54}{space 4}-1.379998{col 67}{space 3} .7428895
{txt}{space 9}48  {c |}{col 14}{res}{space 2}-.3431003{col 26}{space 2} .6277743{col 37}{space 1}   -0.55{col 46}{space 3}0.590{col 54}{space 4}-1.421079{col 67}{space 3} .7348787
{txt}{space 9}49  {c |}{col 14}{res}{space 2}-.3676464{col 26}{space 2} .6376522{col 37}{space 1}   -0.58{col 46}{space 3}0.570{col 54}{space 4}-1.462587{col 67}{space 3} .7272945
{txt}{space 9}50  {c |}{col 14}{res}{space 2}-.3921924{col 26}{space 2} .6477671{col 37}{space 1}   -0.61{col 46}{space 3}0.551{col 54}{space 4}-1.504502{col 67}{space 3} .7201172
{txt}{space 9}51  {c |}{col 14}{res}{space 2}-.4167384{col 26}{space 2} .6581081{col 37}{space 1}   -0.63{col 46}{space 3}0.533{col 54}{space 4}-1.546805{col 67}{space 3} .7133281
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(1,101 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of issue dimensionality", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(b, replace)
{res}{txt}
{com}. 
. drop xyz-g
{txt}
{com}. 
. margins, dydx(issue_diversity) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       151
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:issue_diversity}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}      dy/dx{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [90% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}issue_diversity {txt}{c |}
{space 12}_at {c |}
{space 13}1  {c |}{col 17}{res}{space 2}-.1952611{col 29}{space 2} 1.959954{col 40}{space 1}   -0.10{col 49}{space 3}0.922{col 57}{space 4}-3.560785{col 70}{space 3} 3.170263
{txt}{space 13}2  {c |}{col 17}{res}{space 2}-.1041289{col 29}{space 2} 1.874237{col 40}{space 1}   -0.06{col 49}{space 3}0.956{col 57}{space 4}-3.322464{col 70}{space 3} 3.114206
{txt}{space 13}3  {c |}{col 17}{res}{space 2}-.0129967{col 29}{space 2} 1.789304{col 40}{space 1}   -0.01{col 49}{space 3}0.994{col 57}{space 4}-3.085489{col 70}{space 3} 3.059496
{txt}{space 13}4  {c |}{col 17}{res}{space 2} .0781355{col 29}{space 2} 1.705272{col 40}{space 1}    0.05{col 49}{space 3}0.964{col 57}{space 4}-2.850063{col 70}{space 3} 3.006334
{txt}{space 13}5  {c |}{col 17}{res}{space 2} .1692677{col 29}{space 2} 1.622282{col 40}{space 1}    0.10{col 49}{space 3}0.918{col 57}{space 4}-2.616425{col 70}{space 3}  2.95496
{txt}{space 13}6  {c |}{col 17}{res}{space 2} .2603999{col 29}{space 2} 1.540502{col 40}{space 1}    0.17{col 49}{space 3}0.867{col 57}{space 4}-2.384865{col 70}{space 3} 2.905664
{txt}{space 13}7  {c |}{col 17}{res}{space 2} .3515321{col 29}{space 2} 1.460135{col 40}{space 1}    0.24{col 49}{space 3}0.812{col 57}{space 4}-2.155731{col 70}{space 3} 2.858795
{txt}{space 13}8  {c |}{col 17}{res}{space 2} .4426643{col 29}{space 2} 1.381428{col 40}{space 1}    0.32{col 49}{space 3}0.752{col 57}{space 4}-1.929447{col 70}{space 3} 2.814776
{txt}{space 13}9  {c |}{col 17}{res}{space 2} .5337965{col 29}{space 2} 1.304681{col 40}{space 1}    0.41{col 49}{space 3}0.686{col 57}{space 4} -1.70653{col 70}{space 3} 2.774123
{txt}{space 12}10  {c |}{col 17}{res}{space 2} .6249286{col 29}{space 2} 1.230262{col 40}{space 1}    0.51{col 49}{space 3}0.617{col 57}{space 4}-1.487609{col 70}{space 3} 2.737466
{txt}{space 12}11  {c |}{col 17}{res}{space 2} .7160609{col 29}{space 2} 1.158618{col 40}{space 1}    0.62{col 49}{space 3}0.543{col 57}{space 4}-1.273454{col 70}{space 3} 2.705575
{txt}{space 12}12  {c |}{col 17}{res}{space 2} .8071931{col 29}{space 2} 1.090297{col 40}{space 1}    0.74{col 49}{space 3}0.467{col 57}{space 4}-1.065005{col 70}{space 3} 2.679391
{txt}{space 12}13  {c |}{col 17}{res}{space 2} .8983253{col 29}{space 2} 1.025964{col 40}{space 1}    0.88{col 49}{space 3}0.391{col 57}{space 4}-.8634024{col 70}{space 3} 2.660053
{txt}{space 12}14  {c |}{col 17}{res}{space 2} .9894574{col 29}{space 2} .9664138{col 40}{space 1}    1.02{col 49}{space 3}0.317{col 57}{space 4}-.6700146{col 70}{space 3} 2.648929
{txt}{space 12}15  {c |}{col 17}{res}{space 2}  1.08059{col 29}{space 2} .9125845{col 40}{space 1}    1.18{col 49}{space 3}0.249{col 57}{space 4}-.4864497{col 70}{space 3} 2.647629
{txt}{space 12}16  {c |}{col 17}{res}{space 2} 1.171722{col 29}{space 2} .8655439{col 40}{space 1}    1.35{col 49}{space 3}0.190{col 57}{space 4} -.314542{col 70}{space 3} 2.657986
{txt}{space 12}17  {c |}{col 17}{res}{space 2} 1.262854{col 29}{space 2}  .826452{col 40}{space 1}    1.53{col 49}{space 3}0.141{col 57}{space 4}-.1562834{col 70}{space 3} 2.681991
{txt}{space 12}18  {c |}{col 17}{res}{space 2} 1.353986{col 29}{space 2}   .79648{col 40}{space 1}    1.70{col 49}{space 3}0.103{col 57}{space 4} -.013685{col 70}{space 3} 2.721657
{txt}{space 12}19  {c |}{col 17}{res}{space 2} 1.445118{col 29}{space 2} .7766845{col 40}{space 1}    1.86{col 49}{space 3}0.076{col 57}{space 4} .1114389{col 70}{space 3} 2.778798
{txt}{space 12}20  {c |}{col 17}{res}{space 2} 1.536251{col 29}{space 2} .7678529{col 40}{space 1}    2.00{col 49}{space 3}0.058{col 57}{space 4} .2177363{col 70}{space 3} 2.854765
{txt}{space 12}21  {c |}{col 17}{res}{space 2} 1.627383{col 29}{space 2} .7703624{col 40}{space 1}    2.11{col 49}{space 3}0.046{col 57}{space 4} .3045594{col 70}{space 3} 2.950206
{txt}{space 12}22  {c |}{col 17}{res}{space 2} 1.718515{col 29}{space 2}  .784104{col 40}{space 1}    2.19{col 49}{space 3}0.039{col 57}{space 4} .3720951{col 70}{space 3} 3.064935
{txt}{space 12}23  {c |}{col 17}{res}{space 2} 1.809647{col 29}{space 2} .8085054{col 40}{space 1}    2.24{col 49}{space 3}0.036{col 57}{space 4} .4213268{col 70}{space 3} 3.197968
{txt}{space 12}24  {c |}{col 17}{res}{space 2} 1.900779{col 29}{space 2} .8426408{col 40}{space 1}    2.26{col 49}{space 3}0.034{col 57}{space 4} .4538434{col 70}{space 3} 3.347715
{txt}{space 12}25  {c |}{col 17}{res}{space 2} 1.991912{col 29}{space 2} .8853853{col 40}{space 1}    2.25{col 49}{space 3}0.035{col 57}{space 4} .4715773{col 70}{space 3} 3.512246
{txt}{space 12}26  {c |}{col 17}{res}{space 2} 2.083044{col 29}{space 2} .9355594{col 40}{space 1}    2.23{col 49}{space 3}0.037{col 57}{space 4} .4765532{col 70}{space 3} 3.689534
{txt}{space 12}27  {c |}{col 17}{res}{space 2} 2.174176{col 29}{space 2} .9920365{col 40}{space 1}    2.19{col 49}{space 3}0.039{col 57}{space 4} .4707059{col 70}{space 3} 3.877646
{txt}{space 12}28  {c |}{col 17}{res}{space 2} 2.265308{col 29}{space 2} 1.053804{col 40}{space 1}    2.15{col 49}{space 3}0.043{col 57}{space 4} .4557747{col 70}{space 3} 4.074842
{txt}{space 12}29  {c |}{col 17}{res}{space 2}  2.35644{col 29}{space 2} 1.119986{col 40}{space 1}    2.10{col 49}{space 3}0.047{col 57}{space 4}  .433262{col 70}{space 3} 4.279619
{txt}{space 12}30  {c |}{col 17}{res}{space 2} 2.447573{col 29}{space 2} 1.189848{col 40}{space 1}    2.06{col 49}{space 3}0.052{col 57}{space 4} .4044324{col 70}{space 3} 4.490713
{txt}{space 12}31  {c |}{col 17}{res}{space 2} 2.538705{col 29}{space 2} 1.262777{col 40}{space 1}    2.01{col 49}{space 3}0.057{col 57}{space 4} .3703342{col 70}{space 3} 4.707075
{txt}{space 12}32  {c |}{col 17}{res}{space 2} 2.629837{col 29}{space 2} 1.338273{col 40}{space 1}    1.97{col 49}{space 3}0.062{col 57}{space 4} .3318285{col 70}{space 3} 4.927845
{txt}{space 12}33  {c |}{col 17}{res}{space 2} 2.720969{col 29}{space 2} 1.415926{col 40}{space 1}    1.92{col 49}{space 3}0.068{col 57}{space 4} .2896201{col 70}{space 3} 5.152318
{txt}{space 12}34  {c |}{col 17}{res}{space 2} 2.812101{col 29}{space 2} 1.495399{col 40}{space 1}    1.88{col 49}{space 3}0.073{col 57}{space 4}  .244286{col 70}{space 3} 5.379916
{txt}{space 12}35  {c |}{col 17}{res}{space 2} 2.903234{col 29}{space 2} 1.576417{col 40}{space 1}    1.84{col 49}{space 3}0.079{col 57}{space 4} .1962987{col 70}{space 3} 5.610168
{txt}{space 12}36  {c |}{col 17}{res}{space 2} 2.994366{col 29}{space 2} 1.658753{col 40}{space 1}    1.81{col 49}{space 3}0.085{col 57}{space 4} .1460471{col 70}{space 3} 5.842684
{txt}{space 12}37  {c |}{col 17}{res}{space 2} 3.085498{col 29}{space 2} 1.742221{col 40}{space 1}    1.77{col 49}{space 3}0.090{col 57}{space 4} .0938521{col 70}{space 3} 6.077143
{txt}{space 12}38  {c |}{col 17}{res}{space 2}  3.17663{col 29}{space 2} 1.826666{col 40}{space 1}    1.74{col 49}{space 3}0.096{col 57}{space 4} .0399801{col 70}{space 3}  6.31328
{txt}{space 12}39  {c |}{col 17}{res}{space 2} 3.267762{col 29}{space 2} 1.911959{col 40}{space 1}    1.71{col 49}{space 3}0.102{col 57}{space 4}-.0153467{col 70}{space 3} 6.550871
{txt}{space 12}40  {c |}{col 17}{res}{space 2} 3.358895{col 29}{space 2}  1.99799{col 40}{space 1}    1.68{col 49}{space 3}0.107{col 57}{space 4} -.071942{col 70}{space 3} 6.789731
{txt}{space 12}41  {c |}{col 17}{res}{space 2} 3.450027{col 29}{space 2} 2.084668{col 40}{space 1}    1.65{col 49}{space 3}0.112{col 57}{space 4}-.1296487{col 70}{space 3} 7.029702
{txt}{space 12}42  {c |}{col 17}{res}{space 2} 3.541159{col 29}{space 2} 2.171915{col 40}{space 1}    1.63{col 49}{space 3}0.117{col 57}{space 4}-.1883337{col 70}{space 3} 7.270651
{txt}{space 12}43  {c |}{col 17}{res}{space 2} 3.632291{col 29}{space 2} 2.259667{col 40}{space 1}    1.61{col 49}{space 3}0.122{col 57}{space 4}-.2478837{col 70}{space 3} 7.512465
{txt}{space 12}44  {c |}{col 17}{res}{space 2} 3.723423{col 29}{space 2} 2.347866{col 40}{space 1}    1.59{col 49}{space 3}0.127{col 57}{space 4}-.3082022{col 70}{space 3} 7.755049
{txt}{space 12}45  {c |}{col 17}{res}{space 2} 3.814555{col 29}{space 2} 2.436464{col 40}{space 1}    1.57{col 49}{space 3}0.132{col 57}{space 4}-.3692049{col 70}{space 3} 7.998316
{txt}{space 12}46  {c |}{col 17}{res}{space 2} 3.905688{col 29}{space 2} 2.525418{col 40}{space 1}    1.55{col 49}{space 3}0.136{col 57}{space 4}-.4308203{col 70}{space 3} 8.242195
{txt}{space 12}47  {c |}{col 17}{res}{space 2}  3.99682{col 29}{space 2} 2.614693{col 40}{space 1}    1.53{col 49}{space 3}0.141{col 57}{space 4}-.4929857{col 70}{space 3} 8.486625
{txt}{space 12}48  {c |}{col 17}{res}{space 2} 4.087952{col 29}{space 2} 2.704256{col 40}{space 1}    1.51{col 49}{space 3}0.145{col 57}{space 4}-.5556467{col 70}{space 3}  8.73155
{txt}{space 12}49  {c |}{col 17}{res}{space 2} 4.179084{col 29}{space 2} 2.794081{col 40}{space 1}    1.50{col 49}{space 3}0.149{col 57}{space 4} -.618756{col 70}{space 3} 8.976925
{txt}{space 12}50  {c |}{col 17}{res}{space 2} 4.270216{col 29}{space 2} 2.884142{col 40}{space 1}    1.48{col 49}{space 3}0.153{col 57}{space 4} -.682271{col 70}{space 3} 9.222704
{txt}{space 12}51  {c |}{col 17}{res}{space 2} 4.361349{col 29}{space 2} 2.974417{col 40}{space 1}    1.47{col 49}{space 3}0.157{col 57}{space 4}-.7461552{col 70}{space 3} 9.468852
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(1,101 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of issue diversity", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(c, replace)
{res}{txt}
{com}. 
. drop xyz- g
{txt}
{com}. 
. margins, dydx(disagr_weight_wvs) at(LogMedian=(0(0.1)5)) l(90)
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       151
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:disagr_weight_wvs}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:12._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:13._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:14._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:15._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:16._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:17._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:18._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:19._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:20._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:21._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:22._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:23._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:24._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:25._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:26._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:27._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:28._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:29._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:30._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}2.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:31._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:32._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:33._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:34._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:35._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:36._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:37._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:38._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:39._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:40._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}3.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:41._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:42._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:43._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:44._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:45._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:46._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:47._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:48._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:49._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:50._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 8}4.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:51._at}:{space 1}{res:{txt:LogMedian}{space 7}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{res}{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31} Delta-method
{col 19}{c |}      dy/dx{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [90% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}disagr_weight_wvs {txt}{c |}
{space 14}_at {c |}
{space 15}1  {c |}{col 19}{res}{space 2} 7.068411{col 31}{space 2} 2.297238{col 42}{space 1}    3.08{col 51}{space 3}0.006{col 59}{space 4} 3.123723{col 72}{space 3}  11.0131
{txt}{space 15}2  {c |}{col 19}{res}{space 2} 6.703883{col 31}{space 2} 2.259019{col 42}{space 1}    2.97{col 51}{space 3}0.007{col 59}{space 4}  2.82482{col 72}{space 3} 10.58295
{txt}{space 15}3  {c |}{col 19}{res}{space 2} 6.339354{col 31}{space 2} 2.222294{col 42}{space 1}    2.85{col 51}{space 3}0.009{col 59}{space 4} 2.523354{col 72}{space 3} 10.15535
{txt}{space 15}4  {c |}{col 19}{res}{space 2} 5.974826{col 31}{space 2} 2.187138{col 42}{space 1}    2.73{col 51}{space 3}0.012{col 59}{space 4} 2.219195{col 72}{space 3} 9.730457
{txt}{space 15}5  {c |}{col 19}{res}{space 2} 5.610297{col 31}{space 2} 2.153626{col 42}{space 1}    2.61{col 51}{space 3}0.016{col 59}{space 4} 1.912211{col 72}{space 3} 9.308384
{txt}{space 15}6  {c |}{col 19}{res}{space 2} 5.245769{col 31}{space 2} 2.121837{col 42}{space 1}    2.47{col 51}{space 3}0.022{col 59}{space 4} 1.602268{col 72}{space 3}  8.88927
{txt}{space 15}7  {c |}{col 19}{res}{space 2} 4.881241{col 31}{space 2}  2.09185{col 42}{space 1}    2.33{col 51}{space 3}0.029{col 59}{space 4} 1.289232{col 72}{space 3} 8.473249
{txt}{space 15}8  {c |}{col 19}{res}{space 2} 4.516712{col 31}{space 2} 2.063743{col 42}{space 1}    2.19{col 51}{space 3}0.040{col 59}{space 4} .9729676{col 72}{space 3} 8.060457
{txt}{space 15}9  {c |}{col 19}{res}{space 2} 4.152184{col 31}{space 2} 2.037594{col 42}{space 1}    2.04{col 51}{space 3}0.054{col 59}{space 4} .6533408{col 72}{space 3} 7.651027
{txt}{space 14}10  {c |}{col 19}{res}{space 2} 3.787655{col 31}{space 2} 2.013479{col 42}{space 1}    1.88{col 51}{space 3}0.073{col 59}{space 4} .3302213{col 72}{space 3}  7.24509
{txt}{space 14}11  {c |}{col 19}{res}{space 2} 3.423127{col 31}{space 2} 1.991472{col 42}{space 1}    1.72{col 51}{space 3}0.100{col 59}{space 4} .0034817{col 72}{space 3} 6.842772
{txt}{space 14}12  {c |}{col 19}{res}{space 2} 3.058598{col 31}{space 2} 1.971644{col 42}{space 1}    1.55{col 51}{space 3}0.135{col 59}{space 4} -.326999{col 72}{space 3} 6.444196
{txt}{space 14}13  {c |}{col 19}{res}{space 2}  2.69407{col 31}{space 2} 1.954061{col 42}{space 1}    1.38{col 51}{space 3}0.182{col 59}{space 4}-.6613348{col 72}{space 3} 6.049475
{txt}{space 14}14  {c |}{col 19}{res}{space 2} 2.329542{col 31}{space 2} 1.938784{col 42}{space 1}    1.20{col 51}{space 3}0.242{col 59}{space 4}  -.99963{col 72}{space 3} 5.658714
{txt}{space 14}15  {c |}{col 19}{res}{space 2} 1.965013{col 31}{space 2} 1.925868{col 42}{space 1}    1.02{col 51}{space 3}0.319{col 59}{space 4} -1.34198{col 72}{space 3} 5.272007
{txt}{space 14}16  {c |}{col 19}{res}{space 2} 1.600485{col 31}{space 2} 1.915361{col 42}{space 1}    0.84{col 51}{space 3}0.412{col 59}{space 4}-1.688466{col 72}{space 3} 4.889436
{txt}{space 14}17  {c |}{col 19}{res}{space 2} 1.235956{col 31}{space 2} 1.907302{col 42}{space 1}    0.65{col 51}{space 3}0.524{col 59}{space 4}-2.039156{col 72}{space 3} 4.511069
{txt}{space 14}18  {c |}{col 19}{res}{space 2} .8714279{col 31}{space 2} 1.901723{col 42}{space 1}    0.46{col 51}{space 3}0.651{col 59}{space 4}-2.394104{col 72}{space 3}  4.13696
{txt}{space 14}19  {c |}{col 19}{res}{space 2} .5068999{col 31}{space 2} 1.898645{col 42}{space 1}    0.27{col 51}{space 3}0.792{col 59}{space 4}-2.753348{col 72}{space 3} 3.767148
{txt}{space 14}20  {c |}{col 19}{res}{space 2} .1423714{col 31}{space 2} 1.898081{col 42}{space 1}    0.08{col 51}{space 3}0.941{col 59}{space 4}-3.116908{col 72}{space 3} 3.401651
{txt}{space 14}21  {c |}{col 19}{res}{space 2}-.2221571{col 31}{space 2} 1.900033{col 42}{space 1}   -0.12{col 51}{space 3}0.908{col 59}{space 4}-3.484789{col 72}{space 3} 3.040474
{txt}{space 14}22  {c |}{col 19}{res}{space 2}-.5866852{col 31}{space 2} 1.904494{col 42}{space 1}   -0.31{col 51}{space 3}0.761{col 59}{space 4}-3.856976{col 72}{space 3} 2.683605
{txt}{space 14}23  {c |}{col 19}{res}{space 2}-.9512141{col 31}{space 2} 1.911445{col 42}{space 1}   -0.50{col 51}{space 3}0.624{col 59}{space 4} -4.23344{col 72}{space 3} 2.331012
{txt}{space 14}24  {c |}{col 19}{res}{space 2}-1.315742{col 31}{space 2} 1.920859{col 42}{space 1}   -0.68{col 51}{space 3}0.501{col 59}{space 4}-4.614134{col 72}{space 3}  1.98265
{txt}{space 14}25  {c |}{col 19}{res}{space 2}-1.680271{col 31}{space 2} 1.932701{col 42}{space 1}   -0.87{col 51}{space 3}0.394{col 59}{space 4}-4.998998{col 72}{space 3} 1.638456
{txt}{space 14}26  {c |}{col 19}{res}{space 2}-2.044799{col 31}{space 2} 1.946927{col 42}{space 1}   -1.05{col 51}{space 3}0.305{col 59}{space 4}-5.387953{col 72}{space 3} 1.298355
{txt}{space 14}27  {c |}{col 19}{res}{space 2}-2.409327{col 31}{space 2} 1.963484{col 42}{space 1}   -1.23{col 51}{space 3}0.233{col 59}{space 4}-5.780912{col 72}{space 3} .9622574
{txt}{space 14}28  {c |}{col 19}{res}{space 2}-2.773856{col 31}{space 2} 1.982314{col 42}{space 1}   -1.40{col 51}{space 3}0.176{col 59}{space 4}-6.177775{col 72}{space 3} .6300624
{txt}{space 14}29  {c |}{col 19}{res}{space 2}-3.138384{col 31}{space 2} 2.003353{col 42}{space 1}   -1.57{col 51}{space 3}0.131{col 59}{space 4} -6.57843{col 72}{space 3} .3016613
{txt}{space 14}30  {c |}{col 19}{res}{space 2}-3.502913{col 31}{space 2} 2.026532{col 42}{space 1}   -1.73{col 51}{space 3}0.098{col 59}{space 4}-6.982761{col 72}{space 3}-.0230655
{txt}{space 14}31  {c |}{col 19}{res}{space 2}-3.867441{col 31}{space 2} 2.051779{col 42}{space 1}   -1.88{col 51}{space 3}0.073{col 59}{space 4}-7.390641{col 72}{space 3}-.3442411
{txt}{space 14}32  {c |}{col 19}{res}{space 2}-4.231969{col 31}{space 2} 2.079018{col 42}{space 1}   -2.04{col 51}{space 3}0.054{col 59}{space 4}-7.801943{col 72}{space 3}-.6619956
{txt}{space 14}33  {c |}{col 19}{res}{space 2}-4.596498{col 31}{space 2} 2.108172{col 42}{space 1}   -2.18{col 51}{space 3}0.040{col 59}{space 4}-8.216534{col 72}{space 3}-.9764623
{txt}{space 14}34  {c |}{col 19}{res}{space 2}-4.961026{col 31}{space 2} 2.139163{col 42}{space 1}   -2.32{col 51}{space 3}0.030{col 59}{space 4}-8.634278{col 72}{space 3}-1.287774
{txt}{space 14}35  {c |}{col 19}{res}{space 2}-5.325555{col 31}{space 2} 2.171913{col 42}{space 1}   -2.45{col 51}{space 3}0.023{col 59}{space 4}-9.055043{col 72}{space 3}-1.596068
{txt}{space 14}36  {c |}{col 19}{res}{space 2}-5.690083{col 31}{space 2} 2.206342{col 42}{space 1}   -2.58{col 51}{space 3}0.017{col 59}{space 4}-9.478691{col 72}{space 3}-1.901476
{txt}{space 14}37  {c |}{col 19}{res}{space 2}-6.054611{col 31}{space 2} 2.242373{col 42}{space 1}   -2.70{col 51}{space 3}0.013{col 59}{space 4} -9.90509{col 72}{space 3}-2.204132
{txt}{space 14}38  {c |}{col 19}{res}{space 2} -6.41914{col 31}{space 2} 2.279932{col 42}{space 1}   -2.82{col 51}{space 3}0.010{col 59}{space 4}-10.33411{col 72}{space 3}-2.504168
{txt}{space 14}39  {c |}{col 19}{res}{space 2}-6.783668{col 31}{space 2} 2.318942{col 42}{space 1}   -2.93{col 51}{space 3}0.008{col 59}{space 4}-10.76563{col 72}{space 3} -2.80171
{txt}{space 14}40  {c |}{col 19}{res}{space 2}-7.148197{col 31}{space 2} 2.359333{col 42}{space 1}   -3.03{col 51}{space 3}0.006{col 59}{space 4}-11.19951{col 72}{space 3}-3.096881
{txt}{space 14}41  {c |}{col 19}{res}{space 2}-7.512725{col 31}{space 2} 2.401035{col 42}{space 1}   -3.13{col 51}{space 3}0.005{col 59}{space 4}-11.63565{col 72}{space 3}-3.389802
{txt}{space 14}42  {c |}{col 19}{res}{space 2}-7.877253{col 31}{space 2}  2.44398{col 42}{space 1}   -3.22{col 51}{space 3}0.004{col 59}{space 4}-12.07392{col 72}{space 3}-3.680587
{txt}{space 14}43  {c |}{col 19}{res}{space 2}-8.241781{col 31}{space 2} 2.488104{col 42}{space 1}   -3.31{col 51}{space 3}0.003{col 59}{space 4}-12.51422{col 72}{space 3}-3.969347
{txt}{space 14}44  {c |}{col 19}{res}{space 2}-8.606311{col 31}{space 2} 2.533346{col 42}{space 1}   -3.40{col 51}{space 3}0.003{col 59}{space 4}-12.95643{col 72}{space 3} -4.25619
{txt}{space 14}45  {c |}{col 19}{res}{space 2}-8.970839{col 31}{space 2} 2.579647{col 42}{space 1}   -3.48{col 51}{space 3}0.002{col 59}{space 4}-13.40047{col 72}{space 3}-4.541213
{txt}{space 14}46  {c |}{col 19}{res}{space 2}-9.335367{col 31}{space 2}  2.62695{col 42}{space 1}   -3.55{col 51}{space 3}0.002{col 59}{space 4}-13.84622{col 72}{space 3}-4.824514
{txt}{space 14}47  {c |}{col 19}{res}{space 2}-9.699895{col 31}{space 2} 2.675203{col 42}{space 1}   -3.63{col 51}{space 3}0.001{col 59}{space 4}-14.29361{col 72}{space 3}-5.106185
{txt}{space 14}48  {c |}{col 19}{res}{space 2}-10.06442{col 31}{space 2} 2.724356{col 42}{space 1}   -3.69{col 51}{space 3}0.001{col 59}{space 4}-14.74254{col 72}{space 3}-5.386312
{txt}{space 14}49  {c |}{col 19}{res}{space 2}-10.42895{col 31}{space 2} 2.774359{col 42}{space 1}   -3.76{col 51}{space 3}0.001{col 59}{space 4}-15.19293{col 72}{space 3}-5.664978
{txt}{space 14}50  {c |}{col 19}{res}{space 2}-10.79348{col 31}{space 2} 2.825169{col 42}{space 1}   -3.82{col 51}{space 3}0.001{col 59}{space 4} -15.6447{col 72}{space 3}-5.942258
{txt}{space 14}51  {c |}{col 19}{res}{space 2}-11.15801{col 31}{space 2} 2.876742{col 42}{space 1}   -3.88{col 51}{space 3}0.001{col 59}{space 4}-16.09779{col 72}{space 3}-6.218228
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. gen xyz=1 if e(sample)==1
{txt}(1,101 missing values generated)

{com}. matrix y_=r(table)'
{txt}
{com}. svmat y_
{txt}
{com}. range g 0 5 52
{txt}(1,200 missing values generated)

{com}. 
. twoway hist LogMedian if xyz==1, percent bcolor(gs15) yaxis(2)  ///
> || line y_5 y_6 g,  lcolor(black) lpattern(dash dash)  ///
> || line y_1 g, lcolor(black) ///
> || line yline g, lcolor(black) ///
> ,  xtitle("Log of median district magnitude",  size(medsmall)) ///
> yscale(alt) yscale(alt axis(2)) ///
> ytitle("% of observations", size(medsmall) axis(2)) ///
> ytitle("Marg. effect of voter lr fractionalization", size(medsmall) axis(1)) ///
> legend(off)  graphregion(color(white)) name(d, replace)
{res}{txt}
{com}. 
. drop xyz- g
{txt}
{com}. 
. graph combine a b c d, graphregion(fcolor(white))  altshrink
{res}{txt}
{com}. capture graph export "C:\Users\MvdWardt\Desktop\Replication adapt or perish\FigureA4.wmf", replace
{txt}
{com}. 
. **Save party system saturation measures
. 
. preserve
{txt}
{com}. 
. keep ccode elec_year elec_month pss pss_mod3 pss_cg
{txt}
{com}. 
. bys ccode elec_year elec_month: gen newid=_N
{txt}
{com}. drop if newid>1
{txt}(0 observations deleted)

{com}. drop newid
{txt}
{com}. 
. capture save "C:\Users\MvdWardt\Desktop\Replication adapt or perish\PSS measures.dta", replace
{txt}
{com}. 
. restore
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MvdWardt\Desktop\Replication adapt or perish\manuscript figure 1 and 2.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 1 Mar 2019, 13:59:09
{txt}{.-}
{smcl}
{txt}{sf}{ul off}